Merge remote-tracking branch 'origin/master'
This commit is contained in:
5
svc/.env
5
svc/.env
@@ -3,8 +3,9 @@ PASSWORD_RESET_SECRET=1dc7d6d52fd0459a8b1f288a6590428e760f54339f8e47beb20db36b6d
|
||||
APP_FRONTEND_URL=http://localhost:9000
|
||||
API_URL=http://localhost:8080
|
||||
UI_DIR=/opt/bssapp/ui/dist
|
||||
POSTGRES_CONN=host=127.0.0.1 port=5432 user=bssapp password=Baggi2025!.? dbname=baggib2b sslmode=require
|
||||
MSSQL_CONN=sqlserver://sa:Gil_0150@100.127.221.13:1433?database=BAGGI_V3&encrypt=disable
|
||||
POSTGRES_CONN=host=46.224.33.150 port=5432 user=postgres password=tayitkan dbname=baggib2b sslmode=disable
|
||||
MSSQL_CONN=sqlserver://sa:Gil_0150@100.127.186.137:1433?database=BAGGI_V3&encrypt=disable
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -14,10 +14,10 @@ var MssqlDB *sql.DB
|
||||
|
||||
func ConnectMSSQL() {
|
||||
connString := strings.TrimSpace(os.Getenv("MSSQL_CONN"))
|
||||
|
||||
if connString == "" {
|
||||
//connString := "sqlserver://sa:Gil_0150@10.0.0.9:1433?databaseName=BAGGI_V3"
|
||||
// Fallback keeps existing behavior if env is missing.
|
||||
connString = "sqlserver://sa:Gil_0150@100.127.221.13:1433?databaseName=BAGGI_V3"
|
||||
// Fallback
|
||||
connString = "server=100.127.186.137;user id=sa;password=Gi l_0150;port=1433;database=BAGGI_V3"
|
||||
}
|
||||
|
||||
var err error
|
||||
@@ -33,6 +33,7 @@ func ConnectMSSQL() {
|
||||
|
||||
fmt.Println("✅ MSSQL bağlantısı başarılı!")
|
||||
}
|
||||
|
||||
func GetDB() *sql.DB {
|
||||
return MssqlDB
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user