diff options
Diffstat (limited to 'internal/conf/static.go')
-rw-r--r-- | internal/conf/static.go | 36 |
1 files changed, 22 insertions, 14 deletions
diff --git a/internal/conf/static.go b/internal/conf/static.go index b0092dde..8132547f 100644 --- a/internal/conf/static.go +++ b/internal/conf/static.go @@ -12,6 +12,12 @@ import ( "github.com/gogs/go-libravatar" ) +const ( + // UsersAvatarURLPath is used to identify whether a URL is to access user + // avatars. + UsersAvatarURLPath = "avatars" +) + // ℹ️ README: This file contains static values that should only be set at initialization time. // // ⚠️ WARNING: After changing any options, do not forget to update template of @@ -71,20 +77,6 @@ var ( FromEmail string `ini:"-"` // Parsed email address of From without person's name. } - // Authentication settings - Auth struct { - ActivateCodeLives int - ResetPasswordCodeLives int - RequireEmailConfirmation bool - RequireSigninView bool - DisableRegistration bool - EnableRegistrationCaptcha bool - - EnableReverseProxyAuthentication bool - EnableReverseProxyAutoRegistration bool - ReverseProxyAuthenticationHeader string - } - // User settings User struct { EnableEmailNotification bool @@ -268,6 +260,22 @@ type AppOpts struct { // Application settings var App AppOpts +type AuthOpts struct { + ActivateCodeLives int + ResetPasswordCodeLives int + RequireEmailConfirmation bool + RequireSigninView bool + DisableRegistration bool + EnableRegistrationCaptcha bool + + EnableReverseProxyAuthentication bool + EnableReverseProxyAutoRegistration bool + ReverseProxyAuthenticationHeader string +} + +// Authentication settings +var Auth AuthOpts + type ServerOpts struct { ExternalURL string `ini:"EXTERNAL_URL"` Domain string |