about summary refs log tree commit diff
path: root/streaming
diff options
context:
space:
mode:
authorClaire <claire.github-309c@sitedethib.com>2022-04-25 17:09:32 +0200
committerClaire <claire.github-309c@sitedethib.com>2022-04-25 17:09:32 +0200
commit002d2729fb342ec899d4322bbd64331da7d22a03 (patch)
tree2316623ed73758bd1d61477d94aee3492744933c /streaming
parentbb12af7250c9368905bae7d91c6ff0b06f3aa400 (diff)
parentf47a9ddc9ffca22258ec9e4b12ca51db8cac1eac (diff)
Merge branch 'main' into glitch-soc/merge-upstream
Diffstat (limited to 'streaming')
-rw-r--r--streaming/index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/streaming/index.js b/streaming/index.js
index 780c4015d..e68f85c17 100644
--- a/streaming/index.js
+++ b/streaming/index.js
@@ -146,7 +146,7 @@ const startWorker = async (workerId) => {
 
   const app = express();
 
-  app.set('trusted proxy', process.env.TRUSTED_PROXY_IP || 'loopback,uniquelocal');
+  app.set('trust proxy', process.env.TRUSTED_PROXY_IP ? process.env.TRUSTED_PROXY_IP.split(/(?:\s*,\s*|\s+)/) : 'loopback,uniquelocal');
 
   const pgPool = new pg.Pool(Object.assign(pgConfigs[env], dbUrlToConfig(process.env.DATABASE_URL)));
   const server = http.createServer(app);