2017-06-02 08:32:24 +00:00
|
|
|
APP_NAME = Gitea
|
2016-02-22 02:52:08 +00:00
|
|
|
RUN_USER = git
|
2015-04-29 00:12:16 +00:00
|
|
|
RUN_MODE = prod
|
|
|
|
|
2017-08-09 05:06:23 +00:00
|
|
|
|
2015-04-29 04:57:58 +00:00
|
|
|
[database]
|
2017-08-09 05:06:23 +00:00
|
|
|
; those settings are protected and can't be modified
|
2015-04-29 04:57:58 +00:00
|
|
|
DB_TYPE = mysql
|
|
|
|
HOST = ##MYSQL_HOST:##MYSQL_PORT
|
|
|
|
NAME = ##MYSQL_DATABASE
|
|
|
|
USER = ##MYSQL_USERNAME
|
|
|
|
PASSWD = ##MYSQL_PASSWORD
|
2015-08-18 20:44:26 +00:00
|
|
|
SSL_MODE = disable
|
2015-04-29 04:57:58 +00:00
|
|
|
PATH =
|
|
|
|
|
2017-08-09 05:06:23 +00:00
|
|
|
|
2015-04-29 00:12:16 +00:00
|
|
|
[server]
|
2017-08-09 05:06:23 +00:00
|
|
|
; those settings are protected and can't be modified
|
2015-04-29 02:29:12 +00:00
|
|
|
PROTOCOL = http
|
2015-11-24 20:16:34 +00:00
|
|
|
DOMAIN = ##DOMAIN
|
2015-04-29 02:29:12 +00:00
|
|
|
ROOT_URL = https://%(DOMAIN)s/
|
2015-04-29 00:12:16 +00:00
|
|
|
HTTP_ADDR =
|
|
|
|
HTTP_PORT = 3000
|
2016-04-11 17:44:43 +00:00
|
|
|
DISABLE_SSH = ##DISABLE_SSH
|
2015-04-29 00:12:16 +00:00
|
|
|
SSH_PORT = ##SSH_PORT
|
2017-04-05 04:42:26 +00:00
|
|
|
APP_DATA_PATH = /app/data/appdata
|
2017-08-09 05:06:23 +00:00
|
|
|
|
2015-04-29 00:12:16 +00:00
|
|
|
; Landing page for non-logged users, can be "home" or "explore"
|
|
|
|
LANDING_PAGE = explore
|
|
|
|
|
2017-08-09 05:06:23 +00:00
|
|
|
|
2017-04-05 04:42:26 +00:00
|
|
|
[repository]
|
2017-08-09 05:06:23 +00:00
|
|
|
; this setting is protected and can't be modified
|
2017-04-05 04:42:26 +00:00
|
|
|
ROOT = /app/data/repository
|
2017-08-09 05:06:23 +00:00
|
|
|
|
2017-04-05 04:42:26 +00:00
|
|
|
SCRIPT_TYPE = bash
|
|
|
|
|
2017-08-09 05:06:23 +00:00
|
|
|
|
2017-04-05 04:42:26 +00:00
|
|
|
[repository.upload]
|
|
|
|
ENABLED = true
|
2017-08-09 05:06:23 +00:00
|
|
|
|
|
|
|
; this setting is protected and can't be modified
|
2017-06-02 08:32:24 +00:00
|
|
|
TEMP_PATH = /run/gitea/tmp/uploads
|
2017-04-05 04:42:26 +00:00
|
|
|
|
2017-08-09 05:06:23 +00:00
|
|
|
|
2017-04-05 04:42:26 +00:00
|
|
|
[release.attachment]
|
|
|
|
ENABLED = true
|
|
|
|
; APP_DATA_PATH/attachments
|
|
|
|
PATH =
|
|
|
|
|
2023-09-26 11:30:53 +00:00
|
|
|
[oauth2_client]
|
|
|
|
ENABLE_AUTO_REGISTRATION = true
|
|
|
|
USERNAME = sub
|
|
|
|
UPDATE_AVATAR = false
|
|
|
|
ACCOUNT_LINKING = auto
|
2017-08-09 05:06:23 +00:00
|
|
|
|
2015-04-29 04:57:58 +00:00
|
|
|
[mailer]
|
|
|
|
ENABLED = true
|
2017-08-09 05:06:23 +00:00
|
|
|
|
|
|
|
; those settings are protected and can't be modified
|
2023-07-29 14:38:02 +00:00
|
|
|
SMTP_ADDR = ##MAIL_SERVER
|
|
|
|
SMTP_PORT = ##MAIL_PORT
|
2016-05-06 06:07:17 +00:00
|
|
|
USER = ##MAIL_SMTP_USERNAME
|
|
|
|
PASSWD = ##MAIL_SMTP_PASSWORD
|
2015-04-29 04:57:58 +00:00
|
|
|
FROM = ##MAIL_FROM
|
2023-07-29 14:38:02 +00:00
|
|
|
PROTOCOL = smtps
|
|
|
|
FORCE_TRUST_SERVER_CERT = true
|
2015-04-29 00:12:16 +00:00
|
|
|
|
2017-08-09 05:06:23 +00:00
|
|
|
|
2015-04-29 02:29:12 +00:00
|
|
|
[security]
|
2017-08-09 05:06:23 +00:00
|
|
|
; those settings are protected and can't be modified
|
2015-04-29 02:29:12 +00:00
|
|
|
INSTALL_LOCK = true
|
2015-04-29 04:57:58 +00:00
|
|
|
SECRET_KEY = ##SECRET_KEY
|
2022-12-28 09:53:57 +00:00
|
|
|
REVERSE_PROXY_LIMIT = 1
|
|
|
|
REVERSE_PROXY_TRUSTED_PROXIES = *
|
2017-08-09 05:06:23 +00:00
|
|
|
|
2015-04-29 04:57:58 +00:00
|
|
|
[service]
|
|
|
|
DISABLE_REGISTRATION = false
|
|
|
|
SHOW_REGISTRATION_BUTTON = false
|
2015-06-30 02:44:01 +00:00
|
|
|
ENABLE_NOTIFY_MAIL = true
|
2015-10-13 22:27:09 +00:00
|
|
|
|
2017-08-09 05:06:23 +00:00
|
|
|
|
2015-10-13 22:27:09 +00:00
|
|
|
[log]
|
2017-08-09 05:06:23 +00:00
|
|
|
; those settings are protected and can't be modified
|
2015-10-13 22:27:09 +00:00
|
|
|
MODE = console
|
|
|
|
; used for xorm.log
|
2017-06-02 08:32:24 +00:00
|
|
|
ROOT_PATH = /run/gitea
|
2016-08-27 04:45:11 +00:00
|
|
|
|
2017-08-09 05:06:23 +00:00
|
|
|
|
2017-04-05 04:42:26 +00:00
|
|
|
[picture]
|
|
|
|
; APP_DATA_PATH/avatars
|
|
|
|
AVATAR_UPLOAD_PATH =
|
|
|
|
GRAVATAR_SOURCE = gravatar
|
|
|
|
DISABLE_GRAVATAR = false
|
|
|
|
|
2017-08-09 05:06:23 +00:00
|
|
|
|
2017-04-05 04:42:26 +00:00
|
|
|
[attachment]
|
|
|
|
ENABLE = true
|
|
|
|
; APP_DATA_PATH/attachments
|
|
|
|
PATH =
|
2016-08-27 04:45:11 +00:00
|
|
|
|
2017-08-09 05:06:23 +00:00
|
|
|
|
2017-06-02 08:32:24 +00:00
|
|
|
[indexer]
|
2017-08-09 05:06:23 +00:00
|
|
|
; this setting is protected and can't be modified
|
2017-06-02 08:32:24 +00:00
|
|
|
ISSUE_INDEXER_PATH = /app/data/appdata/indexers/issues.bleve
|
2019-08-19 23:54:25 +00:00
|
|
|
|
|
|
|
[session]
|
|
|
|
PROVIDER = file
|
|
|
|
PROVIDER_CONFIG = /run/gitea/sessions
|
|
|
|
COOKIE_SECURE = true
|
|
|
|
COOKIE_NAME = cloudron_gitea
|
|
|
|
GC_INTERVAL_TIME = 2592000
|
|
|
|
|
2021-12-03 18:05:28 +00:00
|
|
|
[markup.asciidoc]
|
|
|
|
ENABLED = true
|
|
|
|
FILE_EXTENSIONS = .adoc,.asciidoc
|
|
|
|
RENDER_COMMAND = "asciidoctor -s -a showtitle --out-file=- -"
|
|
|
|
; Input is not a standard input but a file
|
|
|
|
IS_INPUT_FILE = false
|
|
|
|
|
|
|
|
[markup.restructuredtext]
|
|
|
|
ENABLED = true
|
|
|
|
FILE_EXTENSIONS = .rst
|
|
|
|
RENDER_COMMAND = "timeout 30s pandoc +RTS -M512M -RTS -f rst"
|
|
|
|
IS_INPUT_FILE = false
|
|
|
|
|
2021-12-03 03:06:00 +00:00
|
|
|
[markup.jupyter]
|
|
|
|
ENABLED = true
|
|
|
|
FILE_EXTENSIONS = .ipynb
|
|
|
|
RENDER_COMMAND = "jupyter nbconvert --stdin --stdout --to html --template basic"
|
|
|
|
IS_INPUT_FILE = false
|
|
|
|
|
|
|
|
[markup.sanitizer.jupyter.img]
|
|
|
|
ALLOW_DATA_URI_IMAGES = true
|