Versions in this module Expand all Collapse all v3 v3.1.0 Aug 26, 2026 Changes in this version + const EnvDatabaseConnection + const EnvDatabaseDialect + const EnvDefaultUserName + const EnvDefaultUserPass + const EnvLocalAuthEnabled + const EnvLogLevel + const EnvNoColor + const EnvOIDCAutoRedirect + const EnvOIDCAutoRegister + const EnvOIDCClientID + const EnvOIDCClientSecret + const EnvOIDCEnabled + const EnvOIDCGroupsAdmin + const EnvOIDCGroupsClaim + const EnvOIDCGroupsUser + const EnvOIDCIDPName + const EnvOIDCIssuer + const EnvOIDCLinkByUsername + const EnvOIDCPrompt + const EnvOIDCRedirectURL + const EnvOIDCScopes + const EnvOIDCUsernameClaim + const EnvPassStrength + const EnvPluginsDir + const EnvRegistration + const EnvServerCorsAllowHeaders + const EnvServerCorsAllowMethods + const EnvServerCorsAllowOrigins + const EnvServerKeepAlivePeriodSeconds + const EnvServerListenAddr + const EnvServerPort + const EnvServerResponseHeaders + const EnvServerSSLCertFile + const EnvServerSSLCertKey + const EnvServerSSLEnabled + const EnvServerSSLLetsEncryptAcceptTOS + const EnvServerSSLLetsEncryptCache + const EnvServerSSLLetsEncryptDirectoryURL + const EnvServerSSLLetsEncryptEnabled + const EnvServerSSLLetsEncryptHosts + const EnvServerSSLListenAddr + const EnvServerSSLPort + const EnvServerSSLRedirectToHTTPS + const EnvServerSecureCookie + const EnvServerStreamAllowedOrigins + const EnvServerStreamPingPeriodSeconds + const EnvServerTrustedProxies + const EnvUploadedImagesDir + func Get() (*Configuration, []FutureLog) + type Configuration struct + Database Database + DefaultUser DefaultUser + LocalAuthEnabled bool + LogLevel LogLevel + NoColor string + OIDC OIDC + PassStrength int + PluginsDir string + Registration bool + Server Server + UploadedImagesDir string + type Cors struct + AllowHeaders []string + AllowMethods []string + AllowOrigins []string + type Database struct + Connection string + Dialect string + type DefaultUser struct + Name string + Pass string + type FutureLog struct + Level zerolog.Level + Msg string + type LetsEncrypt struct + AcceptTOS bool + Cache string + DirectoryURL string + Enabled bool + Hosts []string + type LogLevel zerolog.Level + func (ll *LogLevel) Decode(value string) error + func (ll LogLevel) AsZeroLogLevel() zerolog.Level + type OIDC struct + AutoRedirect bool + AutoRegister bool + ClientID string + ClientSecret string + Enabled bool + GroupsAdmin []string + GroupsClaim string + GroupsUser []string + IDPName string + Issuer string + LinkByUsername bool + Prompt []string + RedirectURL string + Scopes []string + UsernameClaim string + type SSL struct + CertFile string + CertKey string + Enabled bool + LetsEncrypt LetsEncrypt + ListenAddr string + Port int + RedirectToHTTPS bool + type Server struct + Cors Cors + KeepAlivePeriodSeconds int + ListenAddr string + Port int + ResponseHeaders map[string]string + SSL SSL + SecureCookie bool + Stream Stream + TrustedProxies []string + type Stream struct + AllowedOrigins []string + PingPeriodSeconds int Other modules containing this package github.com/gotify/server github.com/gotify/server/v2