some stuff from mac

This commit is contained in:
Dmitry Chumak
2025-06-12 13:12:20 +03:00
parent 5ed47a796f
commit b653bdc1b6
10 changed files with 551 additions and 60 deletions

View File

@@ -14,7 +14,8 @@ type Config struct {
func GetCfg() Config {
return Config{
DB: struct{ DSN string }{
DSN: os.Getenv("DB_DSN"),
// DSN: os.Getenv("DB_DSN"),
DSN: "postgresql://dmchumak:@localhost:5432/dmchumak?sslmode=disable",
},
JWT: struct{ Secret string }{
Secret: os.Getenv("JWT_SECRET"),