diff options
author | zeripath <art27@cantab.net> | 2019-11-14 22:39:48 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-14 22:39:48 +0000 |
commit | dd1beee2ef907527d0b046f78bab70b2bd868c55 (patch) | |
tree | 80b8bf73916143d0dd082ee9600935eb6301b9fd /custom | |
parent | 3621944c2d381d159cf2622328927cf282f0b3e0 (diff) | |
download | gitea-dd1beee2ef907527d0b046f78bab70b2bd868c55.tar.gz gitea-dd1beee2ef907527d0b046f78bab70b2bd868c55.zip |
Enforce Gitea environment for pushes (#8982)
* Enforce Gitea environment for pushes
* Update custom/conf/app.ini.sample
Co-Authored-By: Antoine GIRARD <sapk@users.noreply.github.com>
Diffstat (limited to 'custom')
-rw-r--r-- | custom/conf/app.ini.sample | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/custom/conf/app.ini.sample b/custom/conf/app.ini.sample index 5e26171d9e..34c3ee9db5 100644 --- a/custom/conf/app.ini.sample +++ b/custom/conf/app.ini.sample @@ -190,7 +190,7 @@ PROTOCOL = http DOMAIN = localhost ROOT_URL = %(PROTOCOL)s://%(DOMAIN)s:%(HTTP_PORT)s/ ; when STATIC_URL_PREFIX is empty it will follow APP_URL -STATIC_URL_PREFIX = +STATIC_URL_PREFIX = ; The address to listen on. Either a IPv4/IPv6 address or the path to a unix socket. HTTP_ADDR = 0.0.0.0 HTTP_PORT = 3000 @@ -383,6 +383,8 @@ MIN_PASSWORD_LENGTH = 6 IMPORT_LOCAL_PATHS = false ; Set to true to prevent all users (including admin) from creating custom git hooks DISABLE_GIT_HOOKS = false +; Set to false to allow pushes to gitea repositories despite having an incomplete environment - NOT RECOMMENDED +ONLY_ALLOW_PUSH_IF_GITEA_ENVIRONMENT_SET = true ;Comma separated list of character classes required to pass minimum complexity. ;If left empty or no valid values are specified, the default values ("lower,upper,digit,spec") will be used. ;Use "off" to disable checking. @@ -515,9 +517,9 @@ SKIP_TLS_VERIFY = false ; Number of history information in each page PAGING_NUM = 10 ; Proxy server URL, support http://, https//, socks://, blank will follow environment http_proxy/https_proxy -PROXY_URL = +PROXY_URL = ; Comma separated list of host names requiring proxy. Glob patterns (*) are accepted; use ** to match all hosts. -PROXY_HOSTS = +PROXY_HOSTS = [mailer] ENABLED = false |