CSP-Flag
All checks were successful
Deploy KubeViz / deploy (push) Successful in 12s

This commit is contained in:
2026-03-01 11:45:20 +01:00
parent 58a10625c3
commit aafc95a551
6 changed files with 13 additions and 2 deletions

View File

@@ -13,6 +13,7 @@ type Config struct {
SessionTTL time.Duration
MaxUploadSize int64
CookieSecure bool
AppCSPEnabled bool
LogLevel string
GitAllowedHosts []string
}
@@ -23,6 +24,7 @@ func Load() Config {
SessionTTL: durationEnvOrDefault("SESSION_TTL", 30*time.Minute),
MaxUploadSize: int64(intEnvOrDefault("MAX_UPLOAD_SIZE", 5*1024*1024)),
CookieSecure: boolEnvOrDefault("COOKIE_SECURE", true),
AppCSPEnabled: boolEnvOrDefault("APP_CSP_ENABLED", true),
LogLevel: envOrDefault("LOG_LEVEL", "info"),
GitAllowedHosts: csvEnvOrDefault("GIT_ALLOWED_HOSTS", []string{
"github.com",