make db ssl optional
Build and Push Docker Image / build (push) Successful in 2m24s

This commit is contained in:
2026-06-27 03:20:16 -07:00
parent 6d211a1e83
commit f7e474a011
3 changed files with 5 additions and 14 deletions
+2 -2
View File
@@ -7,8 +7,8 @@ import {
DB_HOST,
DB_PASSWORD,
DB_PORT,
DB_SSL,
DB_USERNAME,
NODE_ENV,
SEQUELIZE_LOGGING,
} from "@/config"
import compactSql from "@/utils/compact-sql"
@@ -31,7 +31,7 @@ export const SEQUELIZE_CONFIG: Options<PostgresDialect> = {
password: DB_PASSWORD,
host: DB_HOST,
port: DB_PORT,
ssl: NODE_ENV !== "production" ? false : { rejectUnauthorized: false },
ssl: DB_SSL ? { rejectUnauthorized: false } : false,
schema: "public", // default - explicit for clarity
logging: SEQUELIZE_LOGGING ? sqlLogger : false,
pool: {