Skip to content
Snippets Groups Projects
Commit f0d798f9 authored by Aaron Dötsch's avatar Aaron Dötsch
Browse files

Disable SSL for db connection in dev environment

parent 98856fa9
No related branches found
No related tags found
No related merge requests found
Pipeline #7987 passed
...@@ -32,9 +32,9 @@ export const sql = building ? null as unknown as Sql : await init(postgres({ ...@@ -32,9 +32,9 @@ export const sql = building ? null as unknown as Sql : await init(postgres({
password: env.POSTGRES_PASSWORD, password: env.POSTGRES_PASSWORD,
port: parseInt(env.POSTGRES_PORT || "5432"), port: parseInt(env.POSTGRES_PORT || "5432"),
transform: postgres.camel, transform: postgres.camel,
ssl: { ssl: dev ? false : {
rejectUnauthorized: false rejectUnauthorized: true,
} },
})); }));
async function init(sql: Sql) { async function init(sql: Sql) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment