mirror of
https://github.com/Dvorinka/MyClubServer.git
synced 2026-06-03 18:22:57 +00:00
dev day #81
This commit is contained in:
@@ -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"),
|
||||
|
||||
Reference in New Issue
Block a user