Versions in this module Expand all Collapse all v0 v0.900.9 Feb 27, 2024 v0.900.8 Feb 11, 2024 v0.900.7 Feb 10, 2024 v0.900.6 Feb 6, 2024 v0.20.5 Feb 1, 2024 Changes in this version + const EmailPlaceholderActionUrl + const EmailPlaceholderAppName + const EmailPlaceholderAppUrl + const EmailPlaceholderToken + const SecretMask + type AuthProviderConfig struct + AuthUrl string + ClientId string + ClientSecret string + DisplayName string + Enabled bool + PKCE *bool + TokenUrl string + UserApiUrl string + func (c AuthProviderConfig) SetupProvider(provider auth.Provider) error + func (c AuthProviderConfig) Validate() error + type BackupsConfig struct + Cron string + CronMaxKeep int + S3 S3Config + func (c BackupsConfig) 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 + LogIp bool + MaxDays int + MinLevel 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 + Backups BackupsConfig + DiscordAuth AuthProviderConfig + EmailAuth EmailAuthConfig + FacebookAuth AuthProviderConfig + GiteaAuth AuthProviderConfig + GiteeAuth AuthProviderConfig + GithubAuth AuthProviderConfig + GitlabAuth AuthProviderConfig + GoogleAuth AuthProviderConfig + InstagramAuth AuthProviderConfig + KakaoAuth AuthProviderConfig + LivechatAuth AuthProviderConfig + Logs LogsConfig + MailcowAuth AuthProviderConfig + Meta MetaConfig + MicrosoftAuth AuthProviderConfig + OIDC2Auth AuthProviderConfig + OIDC3Auth AuthProviderConfig + OIDCAuth AuthProviderConfig + PatreonAuth AuthProviderConfig + RecordAuthToken TokenConfig + RecordEmailChangeToken TokenConfig + RecordFileToken TokenConfig + RecordPasswordResetToken TokenConfig + RecordVerificationToken TokenConfig + S3 S3Config + Smtp SmtpConfig + SpotifyAuth AuthProviderConfig + StravaAuth AuthProviderConfig + TwitchAuth AuthProviderConfig + TwitterAuth AuthProviderConfig + VKAuth AuthProviderConfig + YandexAuth 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 + LocalName 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