Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { DatabaseURL string `toml:"database_url"` DataPath string `toml:"data_path"` Environment string `toml:"environment"` TrustedUserEmailDomain string `toml:"trusted_user_email_domain"` PublicHostname string `toml:"public_hostname"` SentryDsn string `toml:"sentry_dsn" required:"false"` MinInstancePort uint16 `toml:"min_instance_port"` MaxInstancePort uint16 `toml:"max_instance_port"` HTTPConfig HTTPConfig `toml:"http"` OAuthConfig OAuthConfig `toml:"oauth"` CleanInterval string `toml:"clean_interval"` }
Config holds all Draupnir configuration
type HTTPConfig ¶
type HTTPConfig struct { Port int `toml:"port"` InsecurePort int `toml:"insecure_port"` TLSCertificatePath string `toml:"tls_certificate"` TLSPrivateKeyPath string `toml:"tls_private_key"` }
HTTPConfig holds Draupnir's HTTP configuration
type OAuthConfig ¶
type OAuthConfig struct { RedirectURL string `toml:"redirect_url"` ClientID string `toml:"client_id"` ClientSecret string `toml:"client_secret"` }
OAuthConfig holds Draupnir's OAuth configuration
Click to show internal directories.
Click to hide internal directories.