14 lines
795 B
Go
14 lines
795 B
Go
|
package config
|
||
|
|
||
|
type HTTPConfig struct {
|
||
|
Address string `yaml:"address" env:"HTTP_ADDRESS"`
|
||
|
CookieAuthenticationKey string `yaml:"cookieAuthenticationKey" env:"HTTP_COOKIE_AUTHENTICATION_KEY"`
|
||
|
CookieEncryptionKey string `yaml:"cookieEncryptionKey" env:"HTTP_COOKIE_ENCRYPTION_KEY"`
|
||
|
TokenSigningKey string `yaml:"tokenSigningKey" env:"HTTP_TOKEN_SIGNING_KEY"`
|
||
|
TokenEncryptionKey string `yaml:"tokenEncryptionKey" env:"HTTP_TOKEN_ENCRYPTION_KEY"`
|
||
|
BaseURL string `yaml:"basePublicUrl" env:"HTTP_BASE_URL"`
|
||
|
CookieMaxAge int `yaml:"cookieMaxAge" env:"HTTP_COOKIE_MAX_AGE"`
|
||
|
TemplateDir string `yaml:"templateDir" env:"HTTP_TEMPLATE_DIR"`
|
||
|
PublicDir string `yaml:"publicDir" env:"HTTP_PUBLIC_DIR"`
|
||
|
}
|