Changeset 0.17.1 (#76)
This commit is contained in:
@@ -11,6 +11,7 @@ import (
|
||||
type Config struct {
|
||||
Port string
|
||||
DatabaseURL string
|
||||
DBDriver string // "postgres" (default) or "sqlite"
|
||||
JWTSecret string
|
||||
Environment string
|
||||
BasePath string // URL path prefix (e.g. "/dev", "/test", or "" for root)
|
||||
@@ -60,6 +61,7 @@ func Load() *Config {
|
||||
return &Config{
|
||||
Port: getEnv("PORT", "8080"),
|
||||
DatabaseURL: getEnv("DATABASE_URL", ""),
|
||||
DBDriver: getEnv("DB_DRIVER", ""),
|
||||
JWTSecret: getEnv("JWT_SECRET", "dev-secret-change-me"),
|
||||
Environment: getEnv("ENVIRONMENT", "development"),
|
||||
BasePath: sanitizeBasePath(getEnv("BASE_PATH", "")),
|
||||
|
||||
Reference in New Issue
Block a user