refactor(sql): changed sql connection to ip:port
All checks were successful
Build and Push LST Docker Image / docker (push) Successful in 1m42s

this change was needed for when we run in docker so we can connect to the servers
This commit is contained in:
2026-04-22 05:40:38 -05:00
parent 7962463927
commit a6d53f0266
3 changed files with 35 additions and 34 deletions

View File

@@ -1,10 +1,17 @@
import type sql from "mssql";
const username = "gpviewer";
const password = "gp$$ViewOnly!";
const username = process.env.GP_USER ?? "gpviewer";
const password = process.env.GP_PASSWORD ?? "gp$$ViewOnly!";
const gpServer = process.env.GP_SERVER ?? "USMCD1VMS011";
const port = process.env.SQL_PORT
? Number.parseInt(process.env.SQL_PORT, 10)
: undefined;
export const gpSqlConfig: sql.config = {
server: `USMCD1VMS011`,
server: gpServer,
port: port,
database: `ALPLA`,
user: username,
password: password,