Documentation
¶
Index ¶
Constants ¶
View Source
const RedactedStr = "<redacted>"
Variables ¶
This section is empty.
Functions ¶
func IsRedactedString ¶ added in v1.0.0
IsRedactedString checks if a value is the redacted placeholder
func RedactString ¶ added in v1.0.0
RedactString replaces a string with redacted placeholder
Types ¶
type Config ¶
type Config struct {
Version string
Host string `toml:"host" mapstructure:"host"`
Port int `toml:"port" mapstructure:"port"`
BaseURL string `toml:"baseUrl" mapstructure:"baseUrl"`
SessionSecret string `toml:"sessionSecret" mapstructure:"sessionSecret"`
LogLevel string `toml:"logLevel" mapstructure:"logLevel"`
LogPath string `toml:"logPath" mapstructure:"logPath"`
LogMaxSize int `toml:"logMaxSize" mapstructure:"logMaxSize"`
LogMaxBackups int `toml:"logMaxBackups" mapstructure:"logMaxBackups"`
DataDir string `toml:"dataDir" mapstructure:"dataDir"`
CheckForUpdates bool `toml:"checkForUpdates" mapstructure:"checkForUpdates"`
PprofEnabled bool `toml:"pprofEnabled" mapstructure:"pprofEnabled"`
MetricsEnabled bool `toml:"metricsEnabled" mapstructure:"metricsEnabled"`
MetricsHost string `toml:"metricsHost" mapstructure:"metricsHost"`
MetricsPort int `toml:"metricsPort" mapstructure:"metricsPort"`
MetricsBasicAuthUsers string `toml:"metricsBasicAuthUsers" mapstructure:"metricsBasicAuthUsers"`
ExternalProgramAllowList []string `toml:"externalProgramAllowList" mapstructure:"externalProgramAllowList"`
// OIDC Configuration
OIDCEnabled bool `toml:"oidcEnabled" mapstructure:"oidcEnabled"`
OIDCIssuer string `toml:"oidcIssuer" mapstructure:"oidcIssuer"`
OIDCClientID string `toml:"oidcClientId" mapstructure:"oidcClientId"`
OIDCClientSecret string `toml:"oidcClientSecret" mapstructure:"oidcClientSecret"`
OIDCRedirectURL string `toml:"oidcRedirectUrl" mapstructure:"oidcRedirectUrl"`
OIDCDisableBuiltInLogin bool `toml:"oidcDisableBuiltInLogin" mapstructure:"oidcDisableBuiltInLogin"`
}
Config represents the application configuration
Click to show internal directories.
Click to hide internal directories.