breaking: update runtime options

This commit is contained in:
Hayden 2022-11-13 13:15:12 -09:00
parent 567e12a1e9
commit 46eaef12eb
No known key found for this signature in database
GPG key ID: 17CF79474E257545

View file

@ -16,15 +16,20 @@ const (
) )
type Config struct { type Config struct {
Mode string `yaml:"mode" conf:"default:development"` // development or production Mode string `yaml:"mode" conf:"default:development"` // development or production
Web WebConfig `yaml:"web"` Web WebConfig `yaml:"web"`
Storage Storage `yaml:"storage"` Storage Storage `yaml:"storage"`
Log LoggerConf `yaml:"logger"` Log LoggerConf `yaml:"logger"`
Mailer MailerConf `yaml:"mailer"` Mailer MailerConf `yaml:"mailer"`
Swagger SwaggerConf `yaml:"swagger"` Swagger SwaggerConf `yaml:"swagger"`
Demo bool `yaml:"demo"` Demo bool `yaml:"demo"`
AllowRegistration bool `yaml:"disable_registration" conf:"default:true"` Debug DebugConf `yaml:"debug"`
Debug DebugConf `yaml:"debug"` Options Options `yaml:"options"`
}
type Options struct {
AllowRegistration bool `yaml:"disable_registration" conf:"default:true"`
AutoIncrementAssetID bool `yaml:"auto_increment_asset_id" conf:"default:true"`
} }
type DebugConf struct { type DebugConf struct {