Skip to content

When i login to my DS file or any other Synology app, I get IP of the nginx container server instead of the login device #5465

@CzechThisOut01

Description

@CzechThisOut01

@jc21
Hi,
I am aware that this issue has been mentioned to you in past, but I cannot crack it.
I running Docker compose NGINX 'jc21/nginx-proxy-manager:latest' image on my Synology NAS. I switched to this from the SWAG to renewing the certs all the time manually. But I have just notice, that every time I login the IP which gets reported, is the IP of the Docker NGINX container 192.168.96.2 instead of the IP of the device singing in, in the old SWAG setup I got the device real IP and when outside of WiFi reach, but the IP of the phone.
I have read majority of the posts, suggestions and fixes for the headers but none worked for me. Maybe I am not doing something right, I should also mention that I use Cloudflare.
Is there any reliable solution please? And if it is, can they be explained in detail what to, to get the correct device IP displayed instead of the container one?

I did tried these headers, one by one, and even together, no success.

set_real_ip_from ......./12;
set_real_ip_from ......./16;
real_ip_header X-Forwarded-For;
real_ip_recursive on;

proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
Thank you very much

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions