Versions in this module Expand all Collapse all v0 v0.16.0 Apr 28, 2023 Changes in this version + const EmailPlaceholderActionUrl + const EmailPlaceholderAppName + const EmailPlaceholderAppUrl + const EmailPlaceholderToken + const SecretMask + type AuthProviderConfig struct + AuthUrl string + ClientId string + ClientSecret string + Enabled bool + TokenUrl string + UserApiUrl string + func (c AuthProviderConfig) SetupProvider(provider auth.Provider) error + func (c AuthProviderConfig) Validate() error + type EmailAuthConfig struct + Enabled bool + ExceptDomains []string + MinPasswordLength int + OnlyDomains []string + func (c EmailAuthConfig) Validate() error + type EmailTemplate struct + ActionUrl string + Body string + Subject string + func (t EmailTemplate) Resolve(appName string, appUrl, token string) (subject, body, actionUrl string) + func (t EmailTemplate) Validate() error + type LogsConfig struct + MaxDays int + func (c LogsConfig) Validate() error + type MetaConfig struct + AppName string + AppUrl string + ConfirmEmailChangeTemplate EmailTemplate + HideControls bool + ResetPasswordTemplate EmailTemplate + SenderAddress string + SenderName string + VerificationTemplate EmailTemplate + func (c MetaConfig) Validate() error + type S3Config struct + AccessKey string + Bucket string + Enabled bool + Endpoint string + ForcePathStyle bool + Region string + Secret string + func (c S3Config) Validate() error + type Settings struct + AdminAuthToken TokenConfig + AdminFileToken TokenConfig + AdminPasswordResetToken TokenConfig + AppleAuth AuthProviderConfig + DiscordAuth AuthProviderConfig + EmailAuth EmailAuthConfig + FacebookAuth AuthProviderConfig + GiteaAuth AuthProviderConfig + GiteeAuth AuthProviderConfig + GithubAuth AuthProviderConfig + GitlabAuth AuthProviderConfig + GoogleAuth AuthProviderConfig + KakaoAuth AuthProviderConfig + LivechatAuth AuthProviderConfig + Logs LogsConfig + Meta MetaConfig + MicrosoftAuth AuthProviderConfig + OIDC2Auth AuthProviderConfig + OIDC3Auth AuthProviderConfig + OIDCAuth AuthProviderConfig + RecordAuthToken TokenConfig + RecordEmailChangeToken TokenConfig + RecordFileToken TokenConfig + RecordPasswordResetToken TokenConfig + RecordVerificationToken TokenConfig + S3 S3Config + Smtp SmtpConfig + SpotifyAuth AuthProviderConfig + StravaAuth AuthProviderConfig + TwitchAuth AuthProviderConfig + TwitterAuth AuthProviderConfig + func New() *Settings + func (s *Settings) Clone() (*Settings, error) + func (s *Settings) Merge(other *Settings) error + func (s *Settings) NamedAuthProviderConfigs() map[string]AuthProviderConfig + func (s *Settings) RedactClone() (*Settings, error) + func (s *Settings) Validate() error + type SmtpConfig struct + AuthMethod string + Enabled bool + Host string + Password string + Port int + Tls bool + Username string + func (c SmtpConfig) Validate() error + type TokenConfig struct + Duration int64 + Secret string + func (c TokenConfig) Validate() error