|
@@ -1,3 +1,6 @@
|
|
|
|
|
+# NEVER EVER MODIFY THIS FILE
|
|
|
|
|
+# PLEASE MAKE CHANGES ON CORRESPONDING CUSTOM CONFIG FILE
|
|
|
|
|
+
|
|
|
; App name that shows on every page title
|
|
; App name that shows on every page title
|
|
|
APP_NAME = Gogs: Go Git Service
|
|
APP_NAME = Gogs: Go Git Service
|
|
|
; Change it if you run locally
|
|
; Change it if you run locally
|
|
@@ -9,6 +12,10 @@ RUN_MODE = dev
|
|
|
ROOT = /srv/gogs/repo
|
|
ROOT = /srv/gogs/repo
|
|
|
SCRIPT_TYPE = bash
|
|
SCRIPT_TYPE = bash
|
|
|
|
|
|
|
|
|
|
+[ui]
|
|
|
|
|
+; Number of issues that are showed in one page
|
|
|
|
|
+ISSUE_PAGING_NUM = 10
|
|
|
|
|
+
|
|
|
[server]
|
|
[server]
|
|
|
PROTOCOL = http
|
|
PROTOCOL = http
|
|
|
DOMAIN = localhost
|
|
DOMAIN = localhost
|
|
@@ -80,10 +87,12 @@ ENABLE_NOTIFY_MAIL = false
|
|
|
; More detail: https://github.com/gogits/gogs/issues/165
|
|
; More detail: https://github.com/gogits/gogs/issues/165
|
|
|
ENABLE_REVERSE_PROXY_AUTHENTICATION = false
|
|
ENABLE_REVERSE_PROXY_AUTHENTICATION = false
|
|
|
ENABLE_REVERSE_PROXY_AUTO_REGISTRATION = false
|
|
ENABLE_REVERSE_PROXY_AUTO_REGISTRATION = false
|
|
|
|
|
+; Do not check minimum key size with corresponding type
|
|
|
|
|
+DISABLE_MINIMUM_KEY_SIZE_CHECK = false
|
|
|
|
|
|
|
|
[webhook]
|
|
[webhook]
|
|
|
-; Cron task interval in minutes
|
|
|
|
|
-TASK_INTERVAL = 1
|
|
|
|
|
|
|
+; Hook task queue length
|
|
|
|
|
+QUEUE_LENGTH = 1000
|
|
|
; Deliver timeout in seconds
|
|
; Deliver timeout in seconds
|
|
|
DELIVER_TIMEOUT = 5
|
|
DELIVER_TIMEOUT = 5
|
|
|
; Allow insecure certification
|
|
; Allow insecure certification
|
|
@@ -99,14 +108,18 @@ SUBJECT = %(APP_NAME)s
|
|
|
; Gmail: smtp.gmail.com:587
|
|
; Gmail: smtp.gmail.com:587
|
|
|
; QQ: smtp.qq.com:25
|
|
; QQ: smtp.qq.com:25
|
|
|
; Note, if the port ends with "465", SMTPS will be used. Using STARTTLS on port 587 is recommended per RFC 6409. If the server supports STARTTLS it will always be used.
|
|
; Note, if the port ends with "465", SMTPS will be used. Using STARTTLS on port 587 is recommended per RFC 6409. If the server supports STARTTLS it will always be used.
|
|
|
-HOST =
|
|
|
|
|
|
|
+HOST =
|
|
|
|
|
+; Disable HELO operation when hostname are different.
|
|
|
|
|
+DISABLE_HELO =
|
|
|
|
|
+; Custom hostname for HELO operation, default is from system.
|
|
|
|
|
+HELO_HOSTNAME =
|
|
|
; Do not verify the certificate of the server. Only use this for self-signed certificates
|
|
; Do not verify the certificate of the server. Only use this for self-signed certificates
|
|
|
SKIP_VERIFY =
|
|
SKIP_VERIFY =
|
|
|
; Use client certificate
|
|
; Use client certificate
|
|
|
USE_CERTIFICATE = false
|
|
USE_CERTIFICATE = false
|
|
|
CERT_FILE = custom/mailer/cert.pem
|
|
CERT_FILE = custom/mailer/cert.pem
|
|
|
KEY_FILE = custom/mailer/key.pem
|
|
KEY_FILE = custom/mailer/key.pem
|
|
|
-; Mail from address, RFC 5322. This can be just an email address, or the "Name" <email@example.com> format
|
|
|
|
|
|
|
+; Mail from address, RFC 5322. This can be just an email address, or the `"Name" <email@example.com>` format
|
|
|
FROM =
|
|
FROM =
|
|
|
; Mailer user name and password
|
|
; Mailer user name and password
|
|
|
USER =
|
|
USER =
|
|
@@ -185,6 +198,7 @@ SESSION_LIFE_TIME = 86400
|
|
|
SERVICE = server
|
|
SERVICE = server
|
|
|
AVATAR_UPLOAD_PATH = /srv/gogs/data/avatars
|
|
AVATAR_UPLOAD_PATH = /srv/gogs/data/avatars
|
|
|
; Chinese users can choose "duoshuo"
|
|
; Chinese users can choose "duoshuo"
|
|
|
|
|
+; or a custom avatar source, like: http://cn.gravatar.com/avatar/
|
|
|
GRAVATAR_SOURCE = gravatar
|
|
GRAVATAR_SOURCE = gravatar
|
|
|
DISABLE_GRAVATAR = false
|
|
DISABLE_GRAVATAR = false
|
|
|
|
|
|
|
@@ -198,7 +212,7 @@ ALLOWED_TYPES = image/jpeg|image/png
|
|
|
; Max size of each file. Defaults to 32MB
|
|
; Max size of each file. Defaults to 32MB
|
|
|
MAX_SIZE = 32
|
|
MAX_SIZE = 32
|
|
|
; Max number of files per upload. Defaults to 10
|
|
; Max number of files per upload. Defaults to 10
|
|
|
-MAX_FILES = 10
|
|
|
|
|
|
|
+MAX_FILES = 5
|
|
|
|
|
|
|
|
[time]
|
|
[time]
|
|
|
; Specifies the format for fully outputed dates. Defaults to RFC1123
|
|
; Specifies the format for fully outputed dates. Defaults to RFC1123
|
|
@@ -267,21 +281,54 @@ DRIVER =
|
|
|
; Based on xorm, e.g.: root:root@localhost/gogs?charset=utf8
|
|
; Based on xorm, e.g.: root:root@localhost/gogs?charset=utf8
|
|
|
CONN =
|
|
CONN =
|
|
|
|
|
|
|
|
|
|
+[cron]
|
|
|
|
|
+; Enable running cron tasks periodically.
|
|
|
|
|
+ENABLED = true
|
|
|
|
|
+; Run cron tasks when Gogs starts.
|
|
|
|
|
+RUN_AT_START = false
|
|
|
|
|
+
|
|
|
|
|
+; Update mirrors
|
|
|
|
|
+[cron.update_mirrors]
|
|
|
|
|
+SCHEDULE = @every 1h
|
|
|
|
|
+
|
|
|
|
|
+; Repository health check
|
|
|
|
|
+[cron.repo_health_check]
|
|
|
|
|
+SCHEDULE = @every 24h
|
|
|
|
|
+; Arguments for command 'git fsck', e.g.: "--unreachable --tags"
|
|
|
|
|
+; see more on http://git-scm.com/docs/git-fsck/1.7.5
|
|
|
|
|
+ARGS =
|
|
|
|
|
+
|
|
|
|
|
+; Check repository statistics
|
|
|
|
|
+[cron.check_repo_stats]
|
|
|
|
|
+RUN_AT_START = true
|
|
|
|
|
+SCHEDULE = @every 24h
|
|
|
|
|
+
|
|
|
[git]
|
|
[git]
|
|
|
MAX_GIT_DIFF_LINES = 10000
|
|
MAX_GIT_DIFF_LINES = 10000
|
|
|
; Arguments for command 'git gc', e.g.: "--aggressive --auto"
|
|
; Arguments for command 'git gc', e.g.: "--aggressive --auto"
|
|
|
; see more on http://git-scm.com/docs/git-gc/1.7.5
|
|
; see more on http://git-scm.com/docs/git-gc/1.7.5
|
|
|
GC_ARGS =
|
|
GC_ARGS =
|
|
|
|
|
|
|
|
-; Git health check.
|
|
|
|
|
-[git.fsck]
|
|
|
|
|
-ENABLE = true
|
|
|
|
|
-; Execution interval in hours. Default is 24.
|
|
|
|
|
-INTERVAL = 24
|
|
|
|
|
-; Arguments for command 'git fsck', e.g.: "--unreachable --tags"
|
|
|
|
|
-; see more on http://git-scm.com/docs/git-fsck/1.7.5
|
|
|
|
|
-ARGS =
|
|
|
|
|
-
|
|
|
|
|
[i18n]
|
|
[i18n]
|
|
|
-LANGS = en-US,zh-CN,zh-HK,de-DE,fr-CA,nl-NL,lv-LV,ru-RU,ja-JP,es-ES,pt-BR
|
|
|
|
|
-NAMES = English,简体中文,繁體中文,Deutsch,Français,Nederlands,Latviešu,Русский,日本语,Español,Português
|
|
|
|
|
|
|
+LANGS = en-US,zh-CN,zh-HK,de-DE,fr-FR,nl-NL,lv-LV,ru-RU,ja-JP,es-ES,pt-BR,pl-PL,bg-BG,it-IT
|
|
|
|
|
+NAMES = English,简体中文,繁體中文,Deutsch,Français,Nederlands,Latviešu,Русский,日本語,Español,Português do Brasil,Polski,български,Italiano
|
|
|
|
|
+
|
|
|
|
|
+; Used for datetimepicker
|
|
|
|
|
+[i18n.datelang]
|
|
|
|
|
+en-US = en
|
|
|
|
|
+zh-CN = zh
|
|
|
|
|
+zh-HK = zh-TW
|
|
|
|
|
+de-DE = de
|
|
|
|
|
+fr-FR = fr
|
|
|
|
|
+nl-NL = nl
|
|
|
|
|
+lv-LV = lv
|
|
|
|
|
+ru-RU = ru
|
|
|
|
|
+ja-JP = ja
|
|
|
|
|
+es-ES = es
|
|
|
|
|
+pt-BR = pt-BR
|
|
|
|
|
+pl-PL = pl
|
|
|
|
|
+bg-BG = bg
|
|
|
|
|
+it-IT = it
|
|
|
|
|
+
|
|
|
|
|
+[other]
|
|
|
|
|
+SHOW_FOOTER_BRANDING = false
|