[feature/backend] registration control
This commit is contained in:
parent
86ab334bc9
commit
a853374009
5 changed files with 142 additions and 49 deletions
|
@ -11,6 +11,7 @@ type Config struct {
|
|||
Database DatabaseConfig `yaml:"database"`
|
||||
Server ServerConfig `yaml:"server"`
|
||||
JWT JWTConfig `yaml:"jwt"`
|
||||
Auth AuthConfig `yaml:"auth"`
|
||||
Storage StorageConfig `yaml:"storage"`
|
||||
Logging LoggingConfig `yaml:"logging"`
|
||||
RateLimit types.RateLimitConfig `yaml:"rate_limit"`
|
||||
|
@ -32,6 +33,13 @@ type JWTConfig struct {
|
|||
Expiration string `yaml:"expiration"`
|
||||
}
|
||||
|
||||
type AuthConfig struct {
|
||||
Registration struct {
|
||||
Enabled bool `yaml:"enabled"`
|
||||
Message string `yaml:"message"`
|
||||
} `yaml:"registration"`
|
||||
}
|
||||
|
||||
type LoggingConfig struct {
|
||||
Level string `yaml:"level"`
|
||||
Format string `yaml:"format"`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue