diff options
Diffstat (limited to 'config/config.go')
-rw-r--r-- | config/config.go | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/config/config.go b/config/config.go index b1f73a1..f89527c 100644 --- a/config/config.go +++ b/config/config.go @@ -42,11 +42,12 @@ type JwtConfig struct { } type ServerConfig struct { - Port int `mapstructure:"port" yaml:"port"` - RatePeriod time.Duration `mapstructure:"rate_period" yaml:"rate_period"` - RateLimit int `mapstructure:"rate_limit" yaml:"rate_limit"` - ReadTimeout time.Duration `mapstructure:"read_timeout" yaml:"read_timeout"` - WriteTimeout time.Duration `mapstructure:"write_timeout" yaml:"write_timeout"` + Port int `mapstructure:"port" yaml:"port"` + RatePeriod time.Duration `mapstructure:"rate_period" yaml:"rate_period"` + RateLimit int `mapstructure:"rate_limit" yaml:"rate_limit"` + ReadTimeout time.Duration `mapstructure:"read_timeout" yaml:"read_timeout"` + WriteTimeout time.Duration `mapstructure:"write_timeout" yaml:"write_timeout"` + CorsAllowOrigins []string `mapstructure:"cors_allow_origins" yaml:"cors_allow_origins"` } type SchedulerConfig struct { @@ -79,7 +80,7 @@ type EmailConfig struct { func NewConfig() *Config { return &Config{ Telegram: TelegramConfig{ - Token: "", + Token: "REMOVED", }, Database: DatabaseConfig{ Type: "sqlite", |