aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/initializers/constants.ts
diff options
context:
space:
mode:
authorRigel Kent <sendmemail@rigelk.eu>2018-07-28 21:02:26 +0200
committerChocobozzz <me@florianbigard.com>2018-07-31 15:38:08 +0200
commit1c3386e87f947d5b1dabb9be6a3b1a5d0fbf0d50 (patch)
treef4a4efecf5d94fe1a98508db9e4ac26c0a2f8ef4 /server/initializers/constants.ts
parent040467f5c8cba429176423d5e4b83bf5379ad101 (diff)
downloadPeerTube-1c3386e87f947d5b1dabb9be6a3b1a5d0fbf0d50.tar.gz
PeerTube-1c3386e87f947d5b1dabb9be6a3b1a5d0fbf0d50.tar.zst
PeerTube-1c3386e87f947d5b1dabb9be6a3b1a5d0fbf0d50.zip
adding ORM pool configuration
Diffstat (limited to 'server/initializers/constants.ts')
-rw-r--r--server/initializers/constants.ts5
1 files changed, 4 insertions, 1 deletions
diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts
index 3aa979668..6256cf38e 100644
--- a/server/initializers/constants.ts
+++ b/server/initializers/constants.ts
@@ -121,7 +121,10 @@ const CONFIG = {
121 HOSTNAME: config.get<string>('database.hostname'), 121 HOSTNAME: config.get<string>('database.hostname'),
122 PORT: config.get<number>('database.port'), 122 PORT: config.get<number>('database.port'),
123 USERNAME: config.get<string>('database.username'), 123 USERNAME: config.get<string>('database.username'),
124 PASSWORD: config.get<string>('database.password') 124 PASSWORD: config.get<string>('database.password'),
125 POOL: {
126 MAX: config.get<number>('database.pool.max')
127 }
125 }, 128 },
126 REDIS: { 129 REDIS: {
127 HOSTNAME: config.has('redis.hostname') ? config.get<string>('redis.hostname') : null, 130 HOSTNAME: config.has('redis.hostname') ? config.get<string>('redis.hostname') : null,