mirror of
https://github.com/louislam/dockge.git
synced 2026-03-03 02:06:55 -05:00
Need a way to set the trustProxy setting for reverse proxies #226
Labels
No labels
bug
feature-request
help
help wanted
invalid-format
need-reproduce-steps
question
security
upstream
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/dockge-louislam#226
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @rob4226 on GitHub (Sep 26, 2025).
⚠️ Please verify that this bug has NOT been reported before.
🛡️ Security Policy
Description
Unless I missed it somewhere, there doesn't seem to be a way to set the
trustProxysetting. Per the below source code:github.com/louislam/dockge@e31f766516/backend/dockge-server.ts (L459-L469)if the
trustProxysetting is not set, theX-Forwarded-ForandX-Real-Ipheaders will not be respected which is needed when a reverse proxy is used.I set the
trustProxysetting in the Sqlite3 database manually and the real IP's were used correctly so just a way to set thetrustProxysetting with an environment variable and/or a setting in the web UI is needed.👟 Reproduction steps
Use a reverse proxy and login into Dockage and the logs will report the private IP address of the Docker container instead of the real IP address of the user.
👀 Expected behavior
A way to set the
trustProxysetting with an environment variable and/or a setting in the web UI so that theX-Forwarded-ForandX-Real-Ipheaders will be respected when using a reverse proxy.😓 Actual Behavior
The private IP address
172.19.0.1of the docker container is reported instead of the real IP:Dockge Version
1.5.0
💻 Operating System and Arch
Ubuntu Server 25.04
🌐 Browser
Google Chrome 140.0.7339.208
🐋 Docker Version
Docker version 28.4.0, build d8eb465
🟩 NodeJS Version
No response
📝 Relevant log output