Merge branch 'main' into feat/new-ui

This commit is contained in:
Stavros
2025-05-14 20:21:37 +03:00
54 changed files with 691 additions and 277 deletions

View File

@@ -26,6 +26,7 @@ type Config struct {
GenericName string `mapstructure:"generic-name"`
DisableContinue bool `mapstructure:"disable-continue"`
OAuthWhitelist string `mapstructure:"oauth-whitelist"`
OAuthAutoRedirect string `mapstructure:"oauth-auto-redirect" validate:"oneof=none github google generic"`
SessionExpiry int `mapstructure:"session-expiry"`
LogLevel int8 `mapstructure:"log-level" validate:"min=-1,max=5"`
Title string `mapstructure:"app-title"`
@@ -46,6 +47,7 @@ type HandlersConfig struct {
Title string
ForgotPasswordMessage string
BackgroundImage string
OAuthAutoRedirect string
}
// OAuthConfig is the configuration for the providers
@@ -80,3 +82,8 @@ type AuthConfig struct {
LoginTimeout int
LoginMaxRetries int
}
// HooksConfig is the configuration for the hooks service
type HooksConfig struct {
Domain string
}