diff options
author | Chocobozzz <me@florianbigard.com> | 2020-08-24 11:38:57 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2020-08-24 11:38:57 +0200 |
commit | b0ce7c39dce4be8d7c2775e8205f8abfe348a0de (patch) | |
tree | 7b8d7f03162fb3f15933b27fb5744694672a88dd /server/initializers/database.ts | |
parent | 4f24f16e27d942b063c945dde55b902572b7dee7 (diff) | |
download | PeerTube-b0ce7c39dce4be8d7c2775e8205f8abfe348a0de.tar.gz PeerTube-b0ce7c39dce4be8d7c2775e8205f8abfe348a0de.tar.zst PeerTube-b0ce7c39dce4be8d7c2775e8205f8abfe348a0de.zip |
Add ssl support to postgresql
Diffstat (limited to 'server/initializers/database.ts')
-rw-r--r-- | server/initializers/database.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/server/initializers/database.ts b/server/initializers/database.ts index 5cf5765f6..e05e7c335 100644 --- a/server/initializers/database.ts +++ b/server/initializers/database.ts | |||
@@ -48,6 +48,7 @@ const dbname = CONFIG.DATABASE.DBNAME | |||
48 | const username = CONFIG.DATABASE.USERNAME | 48 | const username = CONFIG.DATABASE.USERNAME |
49 | const password = CONFIG.DATABASE.PASSWORD | 49 | const password = CONFIG.DATABASE.PASSWORD |
50 | const host = CONFIG.DATABASE.HOSTNAME | 50 | const host = CONFIG.DATABASE.HOSTNAME |
51 | const ssl = CONFIG.DATABASE.SSL | ||
51 | const port = CONFIG.DATABASE.PORT | 52 | const port = CONFIG.DATABASE.PORT |
52 | const poolMax = CONFIG.DATABASE.POOL.MAX | 53 | const poolMax = CONFIG.DATABASE.POOL.MAX |
53 | 54 | ||
@@ -58,6 +59,7 @@ const sequelizeTypescript = new SequelizeTypescript({ | |||
58 | port, | 59 | port, |
59 | username, | 60 | username, |
60 | password, | 61 | password, |
62 | ssl, | ||
61 | pool: { | 63 | pool: { |
62 | max: poolMax | 64 | max: poolMax |
63 | }, | 65 | }, |