This commit is contained in:
Tomas Dvorak
2025-11-03 19:54:39 +01:00
parent 087f30e82c
commit d5b4faea61
141 changed files with 78770 additions and 966 deletions
+8 -6
View File
@@ -14,9 +14,10 @@ import (
// Config holds all configuration for the application
type Config struct {
// App settings
AppEnv string
Port string
Debug bool
AppEnv string
Port string
Debug bool
Premium bool
// Database settings
DatabaseURL string
@@ -92,9 +93,10 @@ func LoadConfig() {
AppConfig = &Config{
// App settings
AppEnv: getEnv("APP_ENV", "development"),
Port: getEnv("PORT", "8080"),
Debug: getEnvAsBool("DEBUG", true),
AppEnv: getEnv("APP_ENV", "development"),
Port: getEnv("PORT", "8080"),
Debug: getEnvAsBool("DEBUG", true),
Premium: getEnvAsBool("PREMIUM", false),
// Database settings
DatabaseURL: getEnv("DATABASE_URL", "postgres://postgres:postgres@localhost:5432/fotbal_club?sslmode=disable"),