Documentation
¶
Index ¶
Constants ¶
View Source
const ( EnvLogLevel = "GOTIFY_LOGLEVEL" EnvServerKeepAlivePeriodSeconds = "GOTIFY_SERVER_KEEPALIVEPERIODSECONDS" EnvServerListenAddr = "GOTIFY_SERVER_LISTENADDR" EnvServerPort = "GOTIFY_SERVER_PORT" EnvServerSSLEnabled = "GOTIFY_SERVER_SSL_ENABLED" EnvServerSSLRedirectToHTTPS = "GOTIFY_SERVER_SSL_REDIRECTTOHTTPS" EnvServerSSLListenAddr = "GOTIFY_SERVER_SSL_LISTENADDR" EnvServerSSLPort = "GOTIFY_SERVER_SSL_PORT" EnvServerSSLCertFile = "GOTIFY_SERVER_SSL_CERTFILE" EnvServerSSLCertKey = "GOTIFY_SERVER_SSL_CERTKEY" EnvServerSSLLetsEncryptEnabled = "GOTIFY_SERVER_SSL_LETSENCRYPT_ENABLED" EnvServerSSLLetsEncryptAcceptTOS = "GOTIFY_SERVER_SSL_LETSENCRYPT_ACCEPTTOS" EnvServerSSLLetsEncryptCache = "GOTIFY_SERVER_SSL_LETSENCRYPT_CACHE" EnvServerSSLLetsEncryptDirectoryURL = "GOTIFY_SERVER_SSL_LETSENCRYPT_DIRECTORYURL" EnvServerSSLLetsEncryptHosts = "GOTIFY_SERVER_SSL_LETSENCRYPT_HOSTS" EnvServerResponseHeaders = "GOTIFY_SERVER_RESPONSEHEADERS" EnvServerStreamPingPeriodSeconds = "GOTIFY_SERVER_STREAM_PINGPERIODSECONDS" EnvServerStreamAllowedOrigins = "GOTIFY_SERVER_STREAM_ALLOWEDORIGINS" EnvServerCorsAllowOrigins = "GOTIFY_SERVER_CORS_ALLOWORIGINS" EnvServerCorsAllowMethods = "GOTIFY_SERVER_CORS_ALLOWMETHODS" EnvServerCorsAllowHeaders = "GOTIFY_SERVER_CORS_ALLOWHEADERS" EnvServerTrustedProxies = "GOTIFY_SERVER_TRUSTEDPROXIES" EnvServerSecureCookie = "GOTIFY_SERVER_SECURECOOKIE" EnvDatabaseDialect = "GOTIFY_DATABASE_DIALECT" EnvDatabaseConnection = "GOTIFY_DATABASE_CONNECTION" EnvDefaultUserName = "GOTIFY_DEFAULTUSER_NAME" EnvDefaultUserPass = "GOTIFY_DEFAULTUSER_PASS" EnvPassStrength = "GOTIFY_PASSSTRENGTH" EnvUploadedImagesDir = "GOTIFY_UPLOADEDIMAGESDIR" EnvPluginsDir = "GOTIFY_PLUGINSDIR" EnvRegistration = "GOTIFY_REGISTRATION" EnvLocalAuthEnabled = "GOTIFY_LOCALAUTH_ENABLED" EnvOIDCEnabled = "GOTIFY_OIDC_ENABLED" EnvOIDCIssuer = "GOTIFY_OIDC_ISSUER" EnvOIDCClientID = "GOTIFY_OIDC_CLIENTID" EnvOIDCClientSecret = "GOTIFY_OIDC_CLIENTSECRET" EnvOIDCUsernameClaim = "GOTIFY_OIDC_USERNAMECLAIM" EnvOIDCGroupsClaim = "GOTIFY_OIDC_GROUPS_CLAIM" EnvOIDCGroupsUser = "GOTIFY_OIDC_GROUPS_USER" EnvOIDCGroupsAdmin = "GOTIFY_OIDC_GROUPS_ADMIN" EnvOIDCRedirectURL = "GOTIFY_OIDC_REDIRECTURL" EnvOIDCAutoRegister = "GOTIFY_OIDC_AUTOREGISTER" EnvOIDCLinkByUsername = "GOTIFY_OIDC_LINK_BY_USERNAME" EnvOIDCScopes = "GOTIFY_OIDC_SCOPES" EnvOIDCIDPName = "GOTIFY_OIDC_IDP_NAME" EnvOIDCAutoRedirect = "GOTIFY_OIDC_AUTO_REDIRECT" EnvOIDCPrompt = "GOTIFY_OIDC_PROMPT" EnvNoColor = "NOCOLOR" )
Variables ¶
This section is empty.
Functions ¶
func Get ¶
func Get() (*Configuration, []FutureLog)
Get returns the configuration extracted from env variables.
Types ¶
type Configuration ¶
type DefaultUser ¶
type FutureLog ¶
FutureLog is an intermediate type for log messages. It is used before the config was loaded because without loaded config we do not know the log level, so we log these messages once the config was initialized.
type LetsEncrypt ¶
type LogLevel ¶
LogLevel type that provides helper methods for decoding.
func (LogLevel) AsZeroLogLevel ¶
AsZeroLogLevel converts the LogLevel to a zerolog.Level.
Click to show internal directories.
Click to hide internal directories.