[Bug]: IP of reverse proxy in the log #560

Closed
opened 2026-02-04 20:21:42 +03:00 by OVERLORD · 2 comments
Owner

Originally created by @ipod86 on GitHub (Aug 24, 2024).

Where is the problem occurring?

I encountered the problem while interacting with the server (Backend)

What browsers are you seeing the problem on?

No response

Current behaviour

Thanks to another issue, I have now managed to get a log.
But unfortunately I now have the next problem.

If a login fails, the IP of the reverse proxy is logged and not the IP of the one to be accessed. Other containers are configured in the same way, and the corresponding IP appears in the log.

Desired behaviour

Logged ip from accessing

Steps to reproduce

Install planka with docker and reverse proxy with caddy

Other information

No response

Originally created by @ipod86 on GitHub (Aug 24, 2024). ### Where is the problem occurring? I encountered the problem while interacting with the server (Backend) ### What browsers are you seeing the problem on? _No response_ ### Current behaviour Thanks to another issue, I have now managed to get a log. But unfortunately I now have the next problem. If a login fails, the IP of the reverse proxy is logged and not the IP of the one to be accessed. Other containers are configured in the same way, and the corresponding IP appears in the log. ### Desired behaviour Logged ip from accessing ### Steps to reproduce Install planka with docker and reverse proxy with caddy ### Other information _No response_
Author
Owner

@meltyshev commented on GitHub (Aug 24, 2024):

Hi! To display a real IP in the logs, you have to set the TRUST_PROXY=true environment variable and restart the container.

@meltyshev commented on GitHub (Aug 24, 2024): Hi! To display a real IP in the logs, you have to set the `TRUST_PROXY=true` environment variable and restart the container.
Author
Owner

@ipod86 commented on GitHub (Aug 24, 2024):

Thanks, that was it. I couldn't find it in the documentation. It works with 1.

@ipod86 commented on GitHub (Aug 24, 2024): Thanks, that was it. I couldn't find it in the documentation. It works with 1.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/planka#560