This repository has been archived on 2024-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
2021-05-02 22:49:16 +00:00
|
|
|
package config
|
|
|
|
|
|
|
|
type Config struct {
|
2021-05-04 12:28:48 +00:00
|
|
|
Debug bool `yaml:"debug"`
|
|
|
|
Web WebConfig `yaml:"web"`
|
|
|
|
Paths PathsConfig `yaml:"paths"`
|
|
|
|
LogLevel string `yaml:"log_level"`
|
|
|
|
ErrorReporting ErrorReportingConfig `yaml:"error_reporting"`
|
2021-05-02 22:49:16 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type WebConfig struct {
|
2021-05-04 12:07:12 +00:00
|
|
|
Listen string `yaml:"listen"`
|
|
|
|
ListenTLS string `yaml:"listen_tls"`
|
2021-05-02 22:49:16 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type PathsConfig struct {
|
2021-05-04 12:07:12 +00:00
|
|
|
Media string `yaml:"media"`
|
2021-05-02 22:49:16 +00:00
|
|
|
}
|
2021-05-04 12:28:48 +00:00
|
|
|
|
|
|
|
type ErrorReportingConfig struct {
|
|
|
|
Enabled bool `yaml:"enabled"`
|
|
|
|
Environment string `yaml:"environment"`
|
|
|
|
SendPII bool `yaml:"send_pii"`
|
|
|
|
}
|