diff options
Diffstat (limited to 'app_old.ini')
-rw-r--r-- | app_old.ini | 85 |
1 files changed, 60 insertions, 25 deletions
diff --git a/app_old.ini b/app_old.ini index c1326dedc60f..325c1caba2ba 100644 --- a/app_old.ini +++ b/app_old.ini @@ -15,6 +15,8 @@ SCRIPT_TYPE = bash ANSI_CHARSET = ; Force every new repository to be private 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 PULL_REQUEST_QUEUE_LENGTH = 10000 @@ -25,6 +27,10 @@ EXPLORE_PAGING_NUM = 20 ISSUE_PAGING_NUM = 10 ; Number of maximum commits showed in one activity feed 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] ; 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 REPO_PAGING_NUM = 50 ; 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 ORG_PAGING_NUM = 50 [markdown] ; Enable hard line break extension 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] PROTOCOL = http @@ -46,16 +55,33 @@ DOMAIN = localhost ROOT_URL = %(PROTOCOL)s://%(DOMAIN)s:%(HTTP_PORT)s/ HTTP_ADDR = 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 = false ; Whether use builtin SSH server or not. 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 +; 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 OFFLINE_MODE = false DISABLE_ROUTER_LOG = false ; Generate steps: -; $ cd path/to/gogs/custom/https ; $ ./gogs cert -ca=true -duration=8760h0m0s -host=myhost.example.com ; ; 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 ; default is the path where Gogs is executed STATIC_ROOT_PATH = +; Default path for App data +APP_DATA_PATH = data ; Application level GZIP support ENABLE_GZIP = false ; Landing page for non-logged users, can be "home" or "explore" 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] ; Either "mysql", "postgres" or "sqlite3", it's your choice DB_TYPE = mysql @@ -81,7 +116,7 @@ USER = root PASSWD = ; For "postgres" only, either "disable", "require" or "verify-full" SSL_MODE = disable -; For "sqlite3" and "tidb" +; For "sqlite3" and "tidb", use absolute path when you start as service PATH = data/gogs.db [admin] @@ -106,28 +141,14 @@ REGISTER_EMAIL_CONFIRM = false DISABLE_REGISTRATION = false ; User must sign in to view anything. REQUIRE_SIGNIN_VIEW = false -; Cache avatar as picture -ENABLE_CACHE_AVATAR = false ; Mail notification ENABLE_NOTIFY_MAIL = false ; More detail: https://github.com/gogits/gogs/issues/165 ENABLE_REVERSE_PROXY_AUTHENTICATION = 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 = 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] ; Hook task queue length QUEUE_LENGTH = 1000 @@ -196,8 +217,6 @@ GC_INTERVAL_TIME = 86400 SESSION_LIFE_TIME = 86400 [picture] -; The place to picture data, either "server" or "qiniu", default is "server" -SERVICE = server AVATAR_UPLOAD_PATH = data/avatars ; Chinese users can choose "duoshuo" ; or a custom avatar source, like: http://cn.gravatar.com/avatar/ @@ -265,8 +284,8 @@ ADDR = ; For "smtp" mode only [log.smtp] 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 HOST = ; Mailer user name and password @@ -296,7 +315,8 @@ SCHEDULE = @every 1h ; Repository health check [cron.repo_health_check] 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 ARGS = @@ -307,19 +327,27 @@ SCHEDULE = @every 24h [git] 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 GC_ARGS = +; Operation timeout in seconds +[git.timeout] +MIGRATE = 600 +MIRROR = 300 +CLONE = 300 +PULL = 300 + [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,zh-TW,de-DE,fr-FR,nl-NL,lv-LV,ru-RU,ja-JP,es-ES,pt-BR,pl-PL,bg-BG,it-IT,fi-FI,tr-TR,cs-CZ +NAMES = English,简体中文,繁體中文(香港),繁體中文(台湾),Deutsch,Français,Nederlands,Latviešu,Русский,日本語,Español,Português do Brasil,Polski,български,Italiano,Suomalainen,Türk,čeština ; Used for datetimepicker [i18n.datelang] en-US = en zh-CN = zh zh-HK = zh-TW +zh-TW = zh-TW de-DE = de fr-FR = fr nl-NL = nl @@ -331,6 +359,13 @@ pt-BR = pt-BR pl-PL = pl bg-BG = bg it-IT = it +fi-FI = fi +tr-TR = tr +cs-CZ = cs-CZ + +; Extension mapping to highlight class +; e.g. .toml=ini +[highlight.mapping] [other] SHOW_FOOTER_BRANDING = false |