Further config updates, also upgrading dependent packages

This commit is contained in:
🐙PiperYxzzy
2025-10-13 21:16:20 +02:00
parent ff15c7a65f
commit e0693c71dc
8 changed files with 136 additions and 36 deletions

View File

@@ -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")