Skip to content

Commit

Permalink
Add PostgreSQL SSL Option
Browse files Browse the repository at this point in the history
  • Loading branch information
danthonywalker committed Jan 3, 2025
1 parent 6237832 commit 210be01
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/shared/environment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export default {
PostgresqlHost: env.POSTGRESQL_HOST ?? "postgres",
PostgresqlPassword: env.POSTGRESQL_PASSWORD ?? "password",
PostgresqlPort: Number(env.POSTGRESQL_PORT ?? 5432),
PostgresqlSsl: env.POSTGRESQL_SSL === true.toString(),
PostgresqlUser: env.POSTGRESQL_USER ?? "user",
ProjectName: env.PROJECT_NAME ?? "Pedestrian",
RedisCluster: env.REDIS_CLUSTER === true.toString(),
Expand Down
1 change: 1 addition & 0 deletions src/shared/postgresql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ const postgresql = new Pool({
host: Environment.PostgresqlHost,
password: Environment.PostgresqlPassword,
port: Environment.PostgresqlPort,
ssl: Environment.PostgresqlSsl,
user: Environment.PostgresqlUser,
});

Expand Down

0 comments on commit 210be01

Please sign in to comment.