This commit is contained in:
Mephimeow
2026-06-13 17:30:14 +00:00
parent a26cd891e4
commit 17ffe35f5c
8 changed files with 163 additions and 158 deletions
+2 -4
View File
@@ -11,8 +11,7 @@ import (
type Config struct {
ServerPort string
MongoURI string
MongoDB string
DatabaseURL string
JWTSecret string
JWTExpiration time.Duration
JWTRefreshExpiration time.Duration
@@ -25,8 +24,7 @@ func Load() (*Config, error) {
cfg := &Config{
ServerPort: getEnv("SERVER_PORT", "8080"),
MongoURI: getEnv("MONGO_URI", "mongodb://localhost:27017"),
MongoDB: getEnv("MONGO_DB", "aegisguard"),
DatabaseURL: getEnv("DATABASE_URL", "postgres://localhost:5432/aegisguard?sslmode=disable"),
JWTSecret: getEnv("JWT_SECRET", ""),
JWTExpiration: 24 * time.Hour,
JWTRefreshExpiration: 7 * 24 * time.Hour,