2021-05-02 23:49:16 +01:00
|
|
|
package config
|
|
|
|
|
|
|
|
type Config struct {
|
2021-05-04 13:28:48 +01:00
|
|
|
Debug bool `yaml:"debug"`
|
2021-06-23 19:40:51 +01:00
|
|
|
SecretKey string `yaml:"secret_key"`
|
2021-05-04 13:28:48 +01:00
|
|
|
Web WebConfig `yaml:"web"`
|
|
|
|
Paths PathsConfig `yaml:"paths"`
|
|
|
|
LogLevel string `yaml:"log_level"`
|
|
|
|
ErrorReporting ErrorReportingConfig `yaml:"error_reporting"`
|
2021-05-02 23:49:16 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
type WebConfig struct {
|
2021-06-21 20:21:35 +01:00
|
|
|
Listen string `yaml:"listen"`
|
|
|
|
ListenTLS string `yaml:"listen_tls"`
|
|
|
|
LoadLocalFiles bool `yaml:"load_local_files"`
|
2021-05-02 23:49:16 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
type PathsConfig struct {
|
2021-05-04 13:07:12 +01:00
|
|
|
Media string `yaml:"media"`
|
2021-05-02 23:49:16 +01:00
|
|
|
}
|
2021-05-04 13:28:48 +01:00
|
|
|
|
|
|
|
type ErrorReportingConfig struct {
|
|
|
|
Enabled bool `yaml:"enabled"`
|
|
|
|
Environment string `yaml:"environment"`
|
|
|
|
SendPII bool `yaml:"send_pii"`
|
|
|
|
}
|