Open Nines63 opened 3 months ago
I wonder if there's something more to this setup, because "Current IP: 172..." suggests that something inside the docker network is connecting to shimmie, but "proxy_pass http://192..." suggests that nginx is connecting to something on the local network but outside of docker.
Like my guess based only on those IP ranges would be that you have nginx running on the bare metal host, nginx then connects to some kind of docker proxy (which drops the x-real-ip header), which connects to shimmie?
Normally if nginx were running on the bare metal host and forwarding to docker I would expect proxy_pass
to 127.0.0.1
- or if nginx in one docker container was forwarding to shimmie in another docker container, I would expect proxy_pass
to 172.17.x.x
I wonder if there's something more to this setup, because "Current IP: 172..." suggests that something inside the docker network is connecting to shimmie, but "proxy_pass http://192..." suggests that nginx is connecting to something on the local network but outside of docker.
Like my guess based only on those IP ranges would be that you have nginx running on the bare metal host, nginx then connects to some kind of docker proxy (which drops the x-real-ip header), which connects to shimmie?
Normally if nginx were running on the bare metal host and forwarding to docker I would expect
proxy_pass
to127.0.0.1
- or if nginx in one docker container was forwarding to shimmie in another docker container, I would expectproxy_pass
to172.17.x.x
it's nginx proxy manger in a docker container that's connected to the shimmie container
also setting proxy_set_header X-Forwarded-For $remote_addr;
in the reverse proxy gives me this error
That is weird o_O The crash is because it's looking at the X-Forwarded-For header and finding something that isn't a valid IP address (according to filter_var)
/system_info
, what shows up under system info
-> server
-> REMOTE_ADDR
/ HTTP_X_FORWARDED_FOR
/ HTTP_X_REAL_IP
? (feel free to replace numbers with X's, but anything that's in there which isn't a number is probably important, whether that's whitespace or punctuation or letters)
I am running Shimmie in a Docker container behind Nginx Proxy Manager. I set the trusted proxy ranges in the shimmie.cong.php file to every range of my reverse proxy docker container.
I expected the real ip to appear in appear in my account as that would allow for ip bans Instead it's still showing the ip of the reverse proxy
These are all the headers added in the nginx config