This commit is contained in:
2026-02-13 15:56:01 +03:00
parent 03d6c61587
commit 5a249ab510
7 changed files with 209 additions and 8 deletions

View File

@@ -18,7 +18,8 @@ func ConnectPostgres() (*sql.DB, error) {
connStr := os.Getenv("POSTGRES_CONN")
if connStr == "" {
// fallback → sabit tanımlı bağlantı
connStr = "host=172.16.0.3 port=5432 user=postgres password=tayitkan dbname=baggib2b sslmode=disable"
connStr = "host=127.0.0.1 port=5432 user=postgres password=tayitkan dbname=baggib2b sslmode=disable"
//connStr = "host=172.16.0.3 port=5432 user=postgres password=tayitkan dbname=baggib2b sslmode=disable"
}
db, err := sql.Open("postgres", connStr)