summarylogtreecommitdiffstats
path: root/app_new.ini
diff options
context:
space:
mode:
Diffstat (limited to 'app_new.ini')
-rw-r--r--app_new.ini58
1 files changed, 17 insertions, 41 deletions
diff --git a/app_new.ini b/app_new.ini
index 1a61538add51..9c75fc65b0d4 100644
--- a/app_new.ini
+++ b/app_new.ini
@@ -13,9 +13,19 @@ ROOT = /srv/gogs/repo
SCRIPT_TYPE = bash
[ui]
+; Number of repositories that are showed in one explore page
+EXPLORE_PAGING_NUM = 20
; Number of issues that are showed in one page
ISSUE_PAGING_NUM = 10
+[ui.admin]
+; Numer of users that are showed in one page
+USER_PAGING_NUM = 50
+
+[markdown]
+; Enable hard line break extension
+ENABLE_HARD_LINE_BREAK = false
+
[server]
PROTOCOL = http
DOMAIN = localhost
@@ -55,7 +65,7 @@ USER = root
PASSWD =
; For "postgres" only, either "disable", "require" or "verify-full"
SSL_MODE = disable
-; For "sqlite3" only
+; For "sqlite3" and "tidb"
PATH = /srv/gogs/sqlite/gogs.db
[admin]
@@ -89,6 +99,8 @@ 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
[webhook]
; Hook task queue length
@@ -97,11 +109,13 @@ QUEUE_LENGTH = 1000
DELIVER_TIMEOUT = 5
; Allow insecure certification
SKIP_TLS_VERIFY = false
+; Number of history information in each page
+PAGING_NUM = 10
[mailer]
ENABLED = false
; Buffer length of channel, keep it as it is if you don't know what it is.
-SEND_BUFFER_LEN = 10
+SEND_BUFFER_LEN = 100
; Name displayed in mail title
SUBJECT = %(APP_NAME)s
; Mail server
@@ -125,44 +139,6 @@ FROM =
USER =
PASSWD =
-[oauth]
-ENABLED = false
-
-[oauth.github]
-ENABLED = false
-CLIENT_ID =
-CLIENT_SECRET =
-SCOPES = https://api.github.com/user
-AUTH_URL = https://github.com/login/oauth/authorize
-TOKEN_URL = https://github.com/login/oauth/access_token
-
-; Get client id and secret from
-; https://console.developers.google.com/project
-[oauth.google]
-ENABLED = false
-CLIENT_ID =
-CLIENT_SECRET =
-SCOPES = https://www.googleapis.com/auth/userinfo.email https://www.googleapis.com/auth/userinfo.profile
-AUTH_URL = https://accounts.google.com/o/oauth2/auth
-TOKEN_URL = https://accounts.google.com/o/oauth2/token
-
-[oauth.qq]
-ENABLED = false
-CLIENT_ID =
-CLIENT_SECRET =
-SCOPES = get_user_info
-; QQ 互联
-AUTH_URL = https://graph.qq.com/oauth2.0/authorize
-TOKEN_URL = https://graph.qq.com/oauth2.0/token
-
-[oauth.weibo]
-ENABLED = false
-CLIENT_ID =
-CLIENT_SECRET =
-SCOPES = all
-AUTH_URL = https://api.weibo.com/oauth2/authorize
-TOKEN_URL = https://api.weibo.com/oauth2/access_token
-
[cache]
; Either "memory", "redis", or "memcache", default is "memory"
ADAPTER = memory
@@ -210,7 +186,7 @@ PATH = /srv/gogs/data/attachments
; One or more allowed types, e.g. image/jpeg|image/png
ALLOWED_TYPES = image/jpeg|image/png
; Max size of each file. Defaults to 32MB
-MAX_SIZE = 32
+MAX_SIZE = 4
; Max number of files per upload. Defaults to 10
MAX_FILES = 5