This commit is contained in:
Tomas Dvorak
2025-11-02 01:04:02 +01:00
parent ac886502e0
commit b9cea0cd77
153 changed files with 43713 additions and 1700 deletions
+10
View File
@@ -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)