mirror of
https://github.com/Dvorinka/MyClubServer.git
synced 2026-10-28 15:41:16 +00:00
dev day #79
This commit is contained in:
1 parent
ac886502e0
commit
b9cea0cd77
153 files changed
+43713
-1700
No files matched your search
@@ -76,6 +76,11 @@ type Config struct {
|
||||
UmamiUsername string
|
||||
UmamiPassword string
|
||||
UmamiWebsiteID string // If empty, will auto-create on production
|
||||
|
||||
// Antivirus (optional)
|
||||
ClamAVEnabled bool
|
||||
ClamAVHost string
|
||||
ClamAVPort int
|
||||
}
|
||||
|
||||
var AppConfig *Config
|
||||
@@ -174,6 +179,11 @@ func LoadConfig() {
|
||||
UmamiUsername: getEnv("UMAMI_USERNAME", ""),
|
||||
UmamiPassword: getEnv("UMAMI_PASSWORD", ""),
|
||||
UmamiWebsiteID: getEnv("UMAMI_WEBSITE_ID", ""),
|
||||
|
||||
// Antivirus (optional)
|
||||
ClamAVEnabled: getEnvAsBool("CLAMAV_ENABLED", false),
|
||||
ClamAVHost: getEnv("CLAMAV_HOST", "127.0.0.1"),
|
||||
ClamAVPort: getEnvAsInt("CLAMAV_PORT", 3310),
|
||||
}
|
||||
|
||||
// Override allowed origins if specified in environment (comma-separated)
|
||||
|
||||
Reference in new issue
Block a user