mirror of
https://github.com/plankanban/planka.git
synced 2025-07-18 20:59:44 +02:00
Make trustProxy configurable via environment variable
This commit is contained in:
parent
a626076a50
commit
778c64ca45
2 changed files with 2 additions and 1 deletions
|
@ -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,
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue