hydra-webauthn/internal/config/http.go

14 lines
750 B
Go

package config
type HTTPConfig struct {
Address string `yaml:"address" env:"ADDRESS"`
CookieAuthenticationKey string `yaml:"cookieAuthenticationKey" env:"COOKIE_AUTHENTICATION_KEY"`
CookieEncryptionKey string `yaml:"cookieEncryptionKey" env:"COOKIE_ENCRYPTION_KEY"`
TokenSigningKey string `yaml:"tokenSigningKey" env:"TOKEN_SIGNING_KEY"`
TokenEncryptionKey string `yaml:"tokenEncryptionKey" env:"TOKEN_ENCRYPTION_KEY"`
BaseURL string `yaml:"basePublicUrl" env:"BASE_URL"`
CookieMaxAge int `yaml:"cookieMaxAge" env:"COOKIE_MAX_AGE"`
TemplateDir string `yaml:"templateDir" env:"TEMPLATE_DIR"`
PublicDir string `yaml:"publicDir" env:"PUBLIC_DIR"`
}