Final save before migration

This commit is contained in:
Tarrien committed 2024-02-16 10:14:20 -05:00
1 parent 9cbd80d29b
commit e87a7669df
7 files changed
+235 -10

No files matched your search

+6 -1
View File
@@ -109,6 +109,11 @@ const pgConfigFromEnv = (env) => {
},
};
if (!!process.env.DB_SSLMODE && process.env.DB_SSLMODE !== 'disable') {
pgConfigs.development.ssl = true;
pgConfigs.production.ssl = {ca: fs.readFileSync("ca-certificate.crt") };
}
let baseConfig;
if (env.DATABASE_URL) {
@@ -132,7 +137,7 @@ const pgConfigFromEnv = (env) => {
baseConfig.ssl = { rejectUnauthorized: false };
break;
default:
baseConfig.ssl = {};
baseConfig.ssl = { rejectUnauthorized: false };
break;
}
}