Skip to content

Commit

Permalink
Fix database SSL env var name
Browse files Browse the repository at this point in the history
  • Loading branch information
joonashak committed Jan 28, 2025
1 parent 2b4e9a9 commit 9690951
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/src/database/migration-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export default new DataSource({
* modes are not supported. See
* https://github.com/brianc/node-postgres/tree/master/packages/pg-connection-string#tcp-connections
*/
ssl: process.env.DATABASE_SSL_MODE === "true" ? { rejectUnauthorized: false } : false,
ssl: process.env.DATABASE_SSL_ENABLED === "true" ? { rejectUnauthorized: false } : false,
/**
* Glob pattern is used to make this work both locally and in CI as it appears
* that using no wildcards resolves to different paths between the two. This
Expand Down
3 changes: 1 addition & 2 deletions docs/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ Kaiku is configured using environment variables.
| `DATABASE_PORT` || Postgres server port. |
| `DATABASE_USERNAME` || Postgres username. |
| `DATABASE_PASSWORD` || Postgres password. |
| `DATABASE_SSL_ENABLED` | | Use SSL to connect to the Postgres server if set to `"true"`. Disabled by default. |
| `DATABASE_SSL_MODE` | | When set to `true`, TypeORM is configured to use SSL mode `no-verify` when connecting to Postgres. Otherwise, SSL is disabled. |
| `DATABASE_SSL_ENABLED` | | When set to `true`, TypeORM is configured to use SSL mode `no-verify` when connecting to Postgres. Otherwise, SSL is disabled. |
| `SLACK_APP_TOKEN` || App-level token from Slack to authenticate the WebSocket connection. |
| `SLACK_BOT_TOKEN` || OAuth token for Kaiku's bot user. |
| `SLACK_SIGNING_SECRET` || Slack signing secret. |
Expand Down

0 comments on commit 9690951

Please sign in to comment.