mirror of
https://github.com/plankanban/planka.git
synced 2025-12-18 09:13:21 +03:00
Make trustProxy configurable via environment variable
This commit is contained in:
@@ -20,6 +20,7 @@ services:
|
|||||||
- 3000:1337
|
- 3000:1337
|
||||||
environment:
|
environment:
|
||||||
- BASE_URL=http://localhost:3000
|
- BASE_URL=http://localhost:3000
|
||||||
|
- TRUST_PROXY=0
|
||||||
- DATABASE_URL=postgresql://postgres@postgres/planka
|
- DATABASE_URL=postgresql://postgres@postgres/planka
|
||||||
- SECRET_KEY=notsecretkey
|
- SECRET_KEY=notsecretkey
|
||||||
depends_on:
|
depends_on:
|
||||||
|
|||||||
2
server/config/env/production.js
vendored
2
server/config/env/production.js
vendored
@@ -273,7 +273,7 @@ module.exports = {
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// trustProxy: true,
|
trustProxy: process.env.TRUST_PROXY,
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user