diff options
author | ᴜɴᴋɴᴡᴏɴ <u@gogs.io> | 2020-02-27 18:06:38 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-27 18:06:38 +0800 |
commit | 7950f2d17d97c37fca22b88d48056de1c00b4d77 (patch) | |
tree | 962531de3ff86417dc06cc4ece6eb22176fb5b8c /conf/app.ini | |
parent | cf3d55fa10f9b16d0ba996f8129f50743b2cd4ad (diff) |
conf: overhaul auth and user settings (#5942)
* conf: overhaul auth and user settings
* ci: update travis Go versions
Diffstat (limited to 'conf/app.ini')
-rw-r--r-- | conf/app.ini | 45 |
1 files changed, 26 insertions, 19 deletions
diff --git a/conf/app.ini b/conf/app.ini index 063ef4a9..36b829f1 100644 --- a/conf/app.ini +++ b/conf/app.ini @@ -160,8 +160,6 @@ COOKIE_REMEMBER_NAME = gogs_incredible COOKIE_USERNAME = gogs_awesome ; Whether to set secure cookie. COOKIE_SECURE = false -; The HTTP header for reverse proxy authentication via username. -REVERSE_PROXY_AUTHENTICATION_USER = X-WEBAUTH-USER ; Whether to set cookie to indicate user login status. ENABLE_LOGIN_STATUS_COOKIE = false ; The cookie name to store user login status. @@ -201,6 +199,32 @@ USE_PLAIN_TEXT = false ; It is used to support older mail clients and make spam filters happier. ADD_PLAIN_TEXT_ALT = false +[auth] +; The valid duration of activate code in minutes. +ACTIVATE_CODE_LIVES = 180 +; The valid duration of reset password code in minutes. +RESET_PASSWORD_CODE_LIVES = 180 +; Whether to require email confirmation for adding new email addresses. +; Enable this option will also require user to confirm the email for registration. +REQUIRE_EMAIL_CONFIRMATION = false +; Whether to disallow anonymous users visiting the site. +REQUIRE_SIGNIN_VIEW = false +; Whether to disable self-registration. When disabled, accounts would have to be created by admins. +DISABLE_REGISTRATION = false +; Whether to enable captcha validation for registration +ENABLE_REGISTRATION_CAPTCHA = true + +; Whether to enable reverse proxy authentication via HTTP header. +ENABLE_REVERSE_PROXY_AUTHENTICATION = false +; Whether to automatically create new users for reverse proxy authentication. +ENABLE_REVERSE_PROXY_AUTO_REGISTRATION = false +; The HTTP header used as username for reverse proxy authentication. +REVERSE_PROXY_AUTHENTICATION_HEADER = X-WEBAUTH-USER + +[user] +; Whether to enable email notifications for users. +ENABLE_EMAIL_NOTIFICATION = false + ; Attachment settings for releases [release.attachment] ; Whether attachments are enabled. Defaults to `true` @@ -239,23 +263,6 @@ ACCESS_CONTROL_ALLOW_ORIGIN = ; Disable regular (non-admin) users to create organizations DISABLE_REGULAR_ORG_CREATION = false -[service] -ACTIVE_CODE_LIVE_MINUTES = 180 -RESET_PASSWD_CODE_LIVE_MINUTES = 180 -; User need to confirm e-mail for registration -REGISTER_EMAIL_CONFIRM = false -; Does not allow register and admin create account only -DISABLE_REGISTRATION = false -; User must sign in to view anything. -REQUIRE_SIGNIN_VIEW = 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 -; Enable captcha validation for registration -ENABLE_CAPTCHA = true - [webhook] ; Types are enabled for users to use, can be "gogs", "slack", "discord", "dingtalk" TYPES = gogs, slack, discord, dingtalk |