[PR #164] [MERGED] Make trustProxy configurable via environment variable #940

Closed
opened 2026-02-04 21:39:30 +03:00 by OVERLORD · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/plankanban/planka/pull/164
Author: @dbrennand
Created: 10/6/2021
Status: Merged
Merged: 10/20/2021
Merged by: @meltyshev

Base: masterHead: feat/env-var-trust-proxy


📝 Commits (3)

  • 3985150 feat: Add TRUST_PROXY environment variable.
  • c4e67b2 feat: Add TRUST_PROXY environment variable.
  • 6e07aa4 fix: Modify value to be 0 or 1.

📊 Changes

2 files changed (+2 additions, -1 deletions)

View changed files

📝 docker-compose.yml (+1 -0)
📝 server/config/env/production.js (+1 -1)

📄 Description

Hi,

This PR makes the trustProxy value in server/config/env/production.js configurable using the environment variable TRUST_PROXY.

This PR relates to issue #163

Default value in docker-compose.yml is false but if running behind a reverse proxy, it is encouraged to set to true.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/plankanban/planka/pull/164 **Author:** [@dbrennand](https://github.com/dbrennand) **Created:** 10/6/2021 **Status:** ✅ Merged **Merged:** 10/20/2021 **Merged by:** [@meltyshev](https://github.com/meltyshev) **Base:** `master` ← **Head:** `feat/env-var-trust-proxy` --- ### 📝 Commits (3) - [`3985150`](https://github.com/plankanban/planka/commit/39851509a9f567587dbf367791e5d212c6477379) feat: Add TRUST_PROXY environment variable. - [`c4e67b2`](https://github.com/plankanban/planka/commit/c4e67b2ee7dc723f4fb9bd4024397de8c8bf375d) feat: Add TRUST_PROXY environment variable. - [`6e07aa4`](https://github.com/plankanban/planka/commit/6e07aa41aeb77e93c8df7e5fb0ae182c4204e5ce) fix: Modify value to be 0 or 1. ### 📊 Changes **2 files changed** (+2 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `docker-compose.yml` (+1 -0) 📝 `server/config/env/production.js` (+1 -1) </details> ### 📄 Description Hi, This PR makes the `trustProxy` value in `server/config/env/production.js` configurable using the environment variable `TRUST_PROXY`. This PR relates to issue #163 Default value in docker-compose.yml is false but if running behind a reverse proxy, it is encouraged to set to true. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
OVERLORD added the pull-request label 2026-02-04 21:39:30 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/planka#940