|
@@ -15,6 +15,8 @@ SCRIPT_TYPE = bash
|
|
|
ANSI_CHARSET =
|
|
ANSI_CHARSET =
|
|
|
; Force every new repository to be private
|
|
; Force every new repository to be private
|
|
|
FORCE_PRIVATE = false
|
|
FORCE_PRIVATE = false
|
|
|
|
|
+; Global maximum creation limit of repository per user, -1 means no limit
|
|
|
|
|
+MAX_CREATION_LIMIT = -1
|
|
|
; Patch test queue length, make it as large as possible
|
|
; Patch test queue length, make it as large as possible
|
|
|
PULL_REQUEST_QUEUE_LENGTH = 10000
|
|
PULL_REQUEST_QUEUE_LENGTH = 10000
|
|
|
|
|
|
|
@@ -25,6 +27,10 @@ EXPLORE_PAGING_NUM = 20
|
|
|
ISSUE_PAGING_NUM = 10
|
|
ISSUE_PAGING_NUM = 10
|
|
|
; Number of maximum commits showed in one activity feed
|
|
; Number of maximum commits showed in one activity feed
|
|
|
FEED_MAX_COMMIT_NUM = 5
|
|
FEED_MAX_COMMIT_NUM = 5
|
|
|
|
|
+; Value of `theme-color` meta tag, used by Android >= 5.0
|
|
|
|
|
+; An invalid color like "none" or "disable" will have the default style
|
|
|
|
|
+; More info: https://developers.google.com/web/updates/2014/11/Support-for-theme-color-in-Chrome-39-for-Android
|
|
|
|
|
+THEME_COLOR_META_TAG = `#ff5343`
|
|
|
|
|
|
|
|
[ui.admin]
|
|
[ui.admin]
|
|
|
; Number of users that are showed in one page
|
|
; Number of users that are showed in one page
|
|
@@ -32,13 +38,16 @@ USER_PAGING_NUM = 50
|
|
|
; Number of repos that are showed in one page
|
|
; Number of repos that are showed in one page
|
|
|
REPO_PAGING_NUM = 50
|
|
REPO_PAGING_NUM = 50
|
|
|
; Number of notices that are showed in one page
|
|
; Number of notices that are showed in one page
|
|
|
-NOTICE_PAGING_NUM = 50
|
|
|
|
|
|
|
+NOTICE_PAGING_NUM = 25
|
|
|
; Number of organization that are showed in one page
|
|
; Number of organization that are showed in one page
|
|
|
ORG_PAGING_NUM = 50
|
|
ORG_PAGING_NUM = 50
|
|
|
|
|
|
|
|
[markdown]
|
|
[markdown]
|
|
|
; Enable hard line break extension
|
|
; Enable hard line break extension
|
|
|
ENABLE_HARD_LINE_BREAK = false
|
|
ENABLE_HARD_LINE_BREAK = false
|
|
|
|
|
+; List of custom URL-Schemes that are allowed as links when rendering Markdown
|
|
|
|
|
+; for example git,magnet
|
|
|
|
|
+CUSTOM_URL_SCHEMES =
|
|
|
|
|
|
|
|
[server]
|
|
[server]
|
|
|
PROTOCOL = http
|
|
PROTOCOL = http
|
|
@@ -46,16 +55,33 @@ DOMAIN = localhost
|
|
|
ROOT_URL = %(PROTOCOL)s://%(DOMAIN)s:%(HTTP_PORT)s/
|
|
ROOT_URL = %(PROTOCOL)s://%(DOMAIN)s:%(HTTP_PORT)s/
|
|
|
HTTP_ADDR =
|
|
HTTP_ADDR =
|
|
|
HTTP_PORT = 3000
|
|
HTTP_PORT = 3000
|
|
|
|
|
+; Local (DMZ) URL for Gogs workers (such as SSH update) accessing web service.
|
|
|
|
|
+; In most cases you do not need to change the default value.
|
|
|
|
|
+; Alter it only if your SSH server node is not the same as HTTP node.
|
|
|
|
|
+LOCAL_ROOT_URL = http://localhost:%(HTTP_PORT)s/
|
|
|
; Disable SSH feature when not available
|
|
; Disable SSH feature when not available
|
|
|
DISABLE_SSH = false
|
|
DISABLE_SSH = false
|
|
|
; Whether use builtin SSH server or not.
|
|
; Whether use builtin SSH server or not.
|
|
|
START_SSH_SERVER = false
|
|
START_SSH_SERVER = false
|
|
|
|
|
+; Domain name to be exposed in clone URL
|
|
|
|
|
+SSH_DOMAIN = %(DOMAIN)s
|
|
|
|
|
+; Port number to be exposed in clone URL
|
|
|
SSH_PORT = 22
|
|
SSH_PORT = 22
|
|
|
|
|
+; Port number builtin SSH server listens on
|
|
|
|
|
+SSH_LISTEN_PORT = %(SSH_PORT)s
|
|
|
|
|
+; Root path of SSH directory, default is '~/.ssh', but you have to use '/home/git/.ssh'.
|
|
|
|
|
+SSH_ROOT_PATH =
|
|
|
|
|
+; Directory to create temporary files when test publick key using ssh-keygen,
|
|
|
|
|
+; default is system temporary directory.
|
|
|
|
|
+SSH_KEY_TEST_PATH =
|
|
|
|
|
+; Path to ssh-keygen, default is 'ssh-keygen' and let shell find out which one to call.
|
|
|
|
|
+SSH_KEYGEN_PATH = ssh-keygen
|
|
|
|
|
+; Indicate whether to check minimum key size with corresponding type
|
|
|
|
|
+MINIMUM_KEY_SIZE_CHECK = false
|
|
|
; Disable CDN even in "prod" mode
|
|
; Disable CDN even in "prod" mode
|
|
|
OFFLINE_MODE = false
|
|
OFFLINE_MODE = false
|
|
|
DISABLE_ROUTER_LOG = false
|
|
DISABLE_ROUTER_LOG = false
|
|
|
; Generate steps:
|
|
; Generate steps:
|
|
|
-; $ cd path/to/gogs/custom/https
|
|
|
|
|
; $ ./gogs cert -ca=true -duration=8760h0m0s -host=myhost.example.com
|
|
; $ ./gogs cert -ca=true -duration=8760h0m0s -host=myhost.example.com
|
|
|
;
|
|
;
|
|
|
; Or from a .pfx file exported from the Windows certificate store (do
|
|
; Or from a .pfx file exported from the Windows certificate store (do
|
|
@@ -67,11 +93,20 @@ KEY_FILE = custom/https/key.pem
|
|
|
; Upper level of template and static file path
|
|
; Upper level of template and static file path
|
|
|
; default is the path where Gogs is executed
|
|
; default is the path where Gogs is executed
|
|
|
STATIC_ROOT_PATH =
|
|
STATIC_ROOT_PATH =
|
|
|
|
|
+; Default path for App data
|
|
|
|
|
+APP_DATA_PATH = data
|
|
|
; Application level GZIP support
|
|
; Application level GZIP support
|
|
|
ENABLE_GZIP = false
|
|
ENABLE_GZIP = false
|
|
|
; Landing page for non-logged users, can be "home" or "explore"
|
|
; Landing page for non-logged users, can be "home" or "explore"
|
|
|
LANDING_PAGE = home
|
|
LANDING_PAGE = home
|
|
|
|
|
|
|
|
|
|
+; Define allowed algorithms and their minimum key length (use -1 to disable a type)
|
|
|
|
|
+[ssh.minimum_key_sizes]
|
|
|
|
|
+ED25519 = 256
|
|
|
|
|
+ECDSA = 256
|
|
|
|
|
+RSA = 2048
|
|
|
|
|
+DSA = 1024
|
|
|
|
|
+
|
|
|
[database]
|
|
[database]
|
|
|
; Either "mysql", "postgres" or "sqlite3", it's your choice
|
|
; Either "mysql", "postgres" or "sqlite3", it's your choice
|
|
|
DB_TYPE = mysql
|
|
DB_TYPE = mysql
|
|
@@ -81,7 +116,7 @@ USER = root
|
|
|
PASSWD =
|
|
PASSWD =
|
|
|
; For "postgres" only, either "disable", "require" or "verify-full"
|
|
; For "postgres" only, either "disable", "require" or "verify-full"
|
|
|
SSL_MODE = disable
|
|
SSL_MODE = disable
|
|
|
-; For "sqlite3" and "tidb"
|
|
|
|
|
|
|
+; For "sqlite3" and "tidb", use absolute path when you start as service
|
|
|
PATH = data/gogs.db
|
|
PATH = data/gogs.db
|
|
|
|
|
|
|
|
[admin]
|
|
[admin]
|
|
@@ -106,28 +141,14 @@ REGISTER_EMAIL_CONFIRM = false
|
|
|
DISABLE_REGISTRATION = false
|
|
DISABLE_REGISTRATION = false
|
|
|
; User must sign in to view anything.
|
|
; User must sign in to view anything.
|
|
|
REQUIRE_SIGNIN_VIEW = false
|
|
REQUIRE_SIGNIN_VIEW = false
|
|
|
-; Cache avatar as picture
|
|
|
|
|
-ENABLE_CACHE_AVATAR = false
|
|
|
|
|
; Mail notification
|
|
; Mail notification
|
|
|
ENABLE_NOTIFY_MAIL = false
|
|
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
|
|
|
|
|
; Enable captcha validation for registration
|
|
; Enable captcha validation for registration
|
|
|
ENABLE_CAPTCHA = true
|
|
ENABLE_CAPTCHA = true
|
|
|
|
|
|
|
|
-; used to filter keys which are too short
|
|
|
|
|
-[service.minimum_key_sizes]
|
|
|
|
|
-ED25519 = 256
|
|
|
|
|
-ECDSA = 256
|
|
|
|
|
-NTRU = 1087
|
|
|
|
|
-MCE = 1702
|
|
|
|
|
-McE = 1702
|
|
|
|
|
-RSA = 1024
|
|
|
|
|
-DSA = 1024
|
|
|
|
|
-
|
|
|
|
|
[webhook]
|
|
[webhook]
|
|
|
; Hook task queue length
|
|
; Hook task queue length
|
|
|
QUEUE_LENGTH = 1000
|
|
QUEUE_LENGTH = 1000
|
|
@@ -196,8 +217,6 @@ GC_INTERVAL_TIME = 86400
|
|
|
SESSION_LIFE_TIME = 86400
|
|
SESSION_LIFE_TIME = 86400
|
|
|
|
|
|
|
|
[picture]
|
|
[picture]
|
|
|
-; The place to picture data, either "server" or "qiniu", default is "server"
|
|
|
|
|
-SERVICE = server
|
|
|
|
|
AVATAR_UPLOAD_PATH = data/avatars
|
|
AVATAR_UPLOAD_PATH = data/avatars
|
|
|
; Chinese users can choose "duoshuo"
|
|
; Chinese users can choose "duoshuo"
|
|
|
; or a custom avatar source, like: http://cn.gravatar.com/avatar/
|
|
; or a custom avatar source, like: http://cn.gravatar.com/avatar/
|
|
@@ -265,8 +284,8 @@ ADDR =
|
|
|
; For "smtp" mode only
|
|
; For "smtp" mode only
|
|
|
[log.smtp]
|
|
[log.smtp]
|
|
|
LEVEL =
|
|
LEVEL =
|
|
|
-; Name displayed in mail title, default is "Diagnostic message from serve"
|
|
|
|
|
-SUBJECT = Diagnostic message from serve
|
|
|
|
|
|
|
+; Name displayed in mail title, default is "Diagnostic message from server"
|
|
|
|
|
+SUBJECT = Diagnostic message from server
|
|
|
; Mail server
|
|
; Mail server
|
|
|
HOST =
|
|
HOST =
|
|
|
; Mailer user name and password
|
|
; Mailer user name and password
|
|
@@ -296,7 +315,8 @@ SCHEDULE = @every 1h
|
|
|
; Repository health check
|
|
; Repository health check
|
|
|
[cron.repo_health_check]
|
|
[cron.repo_health_check]
|
|
|
SCHEDULE = @every 24h
|
|
SCHEDULE = @every 24h
|
|
|
-; Arguments for command 'git fsck', e.g.: "--unreachable --tags"
|
|
|
|
|
|
|
+TIMEOUT = 60s
|
|
|
|
|
+; Arguments for command 'git fsck', e.g. "--unreachable --tags"
|
|
|
; see more on http://git-scm.com/docs/git-fsck/1.7.5
|
|
; see more on http://git-scm.com/docs/git-fsck/1.7.5
|
|
|
ARGS =
|
|
ARGS =
|
|
|
|
|
|
|
@@ -307,13 +327,20 @@ 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 =
|
|
|
|
|
|
|
|
|
|
+; Operation timeout in seconds
|
|
|
|
|
+[git.timeout]
|
|
|
|
|
+MIGRATE = 600
|
|
|
|
|
+MIRROR = 300
|
|
|
|
|
+CLONE = 300
|
|
|
|
|
+PULL = 300
|
|
|
|
|
+
|
|
|
[i18n]
|
|
[i18n]
|
|
|
-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
|
|
|
|
|
|
|
+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,fi-FI
|
|
|
|
|
+NAMES = English,简体中文,繁體中文,Deutsch,Français,Nederlands,Latviešu,Русский,日本語,Español,Português do Brasil,Polski,български,Italiano,Suomalainen
|
|
|
|
|
|
|
|
; Used for datetimepicker
|
|
; Used for datetimepicker
|
|
|
[i18n.datelang]
|
|
[i18n.datelang]
|
|
@@ -331,6 +358,13 @@ pt-BR = pt-BR
|
|
|
pl-PL = pl
|
|
pl-PL = pl
|
|
|
bg-BG = bg
|
|
bg-BG = bg
|
|
|
it-IT = it
|
|
it-IT = it
|
|
|
|
|
+fi-FI = fi
|
|
|
|
|
+
|
|
|
|
|
+; Extension mapping to highlight class
|
|
|
|
|
+; e.g. .toml=ini
|
|
|
|
|
+[highlight.mapping]
|
|
|
|
|
|
|
|
[other]
|
|
[other]
|
|
|
-SHOW_FOOTER_BRANDING = false
|
|
|
|
|
|
|
+SHOW_FOOTER_BRANDING = false
|
|
|
|
|
+; Show version information about gogs and go in the footer
|
|
|
|
|
+SHOW_FOOTER_VERSION = true
|