diff options
Diffstat (limited to 'conf')
-rw-r--r-- | conf/app.ini | 45 | ||||
-rw-r--r-- | conf/locale/locale_en-US.ini | 24 |
2 files changed, 40 insertions, 29 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 diff --git a/conf/locale/locale_en-US.ini b/conf/locale/locale_en-US.ini index 79d2b7bf..a83ef0eb 100644 --- a/conf/locale/locale_en-US.ini +++ b/conf/locale/locale_en-US.ini @@ -1253,21 +1253,25 @@ config.email.send_test_mail = Send test email config.email.test_mail_failed = Failed to send test email to '%s': %v config.email.test_mail_sent = Test email has been sent to '%s'. +config.auth_config = Authentication configuration +config.auth.activate_code_lives = Activate code lives +config.auth.reset_password_code_lives = Reset password code lives +config.auth.require_email_confirm = Require email confirmation +config.auth.require_sign_in_view = Require sign in view +config.auth.disable_registration = Disable registration +config.auth.enable_registration_captcha = Enable registration captcha +config.auth.enable_reverse_proxy_authentication = Enable reverse proxy authentication +config.auth.enable_reverse_proxy_auto_registration = Enable reverse proxy auto registration +config.auth.reverse_proxy_authentication_header = Reverse proxy authentication header + +config.user_config = User configuration +config.user.enable_email_notify = Enable email notification + config.log_file_root_path = Log File Root Path config.http_config = HTTP Configuration config.http_access_control_allow_origin = Access Control Allow Origin -config.service_config = Service Configuration -config.register_email_confirm = Require Email Confirmation -config.disable_register = Disable Registration -config.show_registration_button = Show Register Button -config.require_sign_in_view = Require Sign In View -config.mail_notify = Mail Notification -config.disable_key_size_check = Disable Minimum Key Size Check -config.enable_captcha = Enable Captcha -config.active_code_lives = Active Code Lives -config.reset_password_code_lives = Reset Password Code Lives config.webhook_config = Webhook Configuration config.queue_length = Queue Length |