diff options
author | Claire <claire.github-309c@sitedethib.com> | 2022-04-25 17:09:32 +0200 |
---|---|---|
committer | Claire <claire.github-309c@sitedethib.com> | 2022-04-25 17:09:32 +0200 |
commit | 002d2729fb342ec899d4322bbd64331da7d22a03 (patch) | |
tree | 2316623ed73758bd1d61477d94aee3492744933c /streaming | |
parent | bb12af7250c9368905bae7d91c6ff0b06f3aa400 (diff) | |
parent | f47a9ddc9ffca22258ec9e4b12ca51db8cac1eac (diff) |
Merge branch 'main' into glitch-soc/merge-upstream
Diffstat (limited to 'streaming')
-rw-r--r-- | streaming/index.js | 2 |
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); |