Further config updates, also upgrading dependent packages
This commit is contained in:
@@ -17,17 +17,29 @@ type DbConfig struct {
|
||||
Name string `toml:"name"`
|
||||
}
|
||||
|
||||
type StackConfiguration struct {
|
||||
ConfigLoaded bool
|
||||
type ServerConfig struct {
|
||||
Port string `toml:"port"`
|
||||
}
|
||||
|
||||
type RateLimitConfig struct {
|
||||
AuthedLimits string `toml:"authed"`
|
||||
UnauthedLimits string `toml:"unauthed"`
|
||||
}
|
||||
|
||||
type SecurityConfig struct {
|
||||
AllowFreshAdminGeneration bool `toml:"gen-fresh-admin"`
|
||||
AdminEmails []string `toml:"admin-emails"`
|
||||
AdminHmacEnv string `toml:"admin-hmac-env"`
|
||||
UserHmacEnv string `toml:"user-hmac-env"`
|
||||
AuthedRateLimitConfig string `toml:"auth-rate-limit-defs"`
|
||||
UnauthedRateLimitConfig string `toml:"unauth-rate-limit-defs"`
|
||||
}
|
||||
|
||||
Db DbConfig `toml:"db"`
|
||||
type StackConfiguration struct {
|
||||
ConfigLoaded bool
|
||||
|
||||
Server ServerConfig `toml:"server"`
|
||||
Db DbConfig `toml:"db"`
|
||||
RateLimits RateLimitConfig `toml:"rate-limits"`
|
||||
Security SecurityConfig `toml:"security"`
|
||||
}
|
||||
|
||||
var Environment = os.Getenv("STACK_ENVIRONMENT")
|
||||
|
||||
Reference in New Issue
Block a user