Skip to content

Commit ba7e1ce

Browse files
Added environment variable for Postgres SSL config (#118)
1 parent 20900ac commit ba7e1ce

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/config/configuration.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ export default (): any => {
66
port: parseInt(process.env.DATABASE_PORT, 10) || 5433,
77
username: process.env.DATABASE_USERNAME || "os2iot",
88
password: process.env.DATABASE_PASSWORD || "toi2so",
9+
ssl: process.env.DATABASE_ENABLE_SSL === "true"
910
},
1011
jwt: {
1112
secret: process.env.JWT_SECRET || "secretKey-os2iot-secretKey",

src/modules/app.module.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ import { OpenDataDkSharingModule } from "./open-data-dk-sharing.module";
5252
autoLoadEntities: true,
5353
retryAttempts: 0,
5454
maxQueryExecutionTime: 1000, // Log queries slower than 1000 ms
55+
ssl: configService.get<boolean>("database.ssl")
5556
}),
5657
}),
5758
// LoggerModule.forRoot({

0 commit comments

Comments
 (0)