leiferksn
leiferksn
RRailway
Created by leiferksn on 2/23/2024 in #✋|help
Updating credit card
It works now, thanks!
6 replies
RRailway
Created by leiferksn on 2/23/2024 in #✋|help
Remote address overwritten when deploying docker images
In the end it worked by trusting the railway IPs. However the really ngx_http_realip_module didn't store the value where it says in the documentations it would. Instead in realip_remote_addr it was stored in $remote_addr. It took me also some time to figure this out. Very strange. Thank you for talking to me. It helped clearing up the the issue. 😀
48 replies
RRailway
Created by leiferksn on 2/23/2024 in #✋|help
Remote address overwritten when deploying docker images
now that you're mentioning it, perhaps I need to trust the railway proxy ips too
48 replies
RRailway
Created by leiferksn on 2/23/2024 in #✋|help
Remote address overwritten when deploying docker images
48 replies
RRailway
Created by leiferksn on 2/23/2024 in #✋|help
Remote address overwritten when deploying docker images
🙂
48 replies
RRailway
Created by leiferksn on 2/23/2024 in #✋|help
Remote address overwritten when deploying docker images
exactly the same thing I'm doing in nginx set_real_ip_from ... trusted ips ... real_ip_header cf-connecting-ip; real_ip_recursive on;
48 replies
RRailway
Created by leiferksn on 2/23/2024 in #✋|help
Remote address overwritten when deploying docker images
what's messing the headers is the docker network I think
48 replies
RRailway
Created by leiferksn on 2/23/2024 in #✋|help
Remote address overwritten when deploying docker images
yes railway proxy also somewhere in between, but I'm sure railway is passing headers correctly. I'm seeing that.
48 replies
RRailway
Created by leiferksn on 2/23/2024 in #✋|help
Remote address overwritten when deploying docker images
in docker network happens the thing that's descriped in the post
48 replies
RRailway
Created by leiferksn on 2/23/2024 in #✋|help
Remote address overwritten when deploying docker images
cloudflare -> docker network -> nginx -> docker container
48 replies
RRailway
Created by leiferksn on 2/23/2024 in #✋|help
Remote address overwritten when deploying docker images
48 replies
RRailway
Created by leiferksn on 2/23/2024 in #✋|help
Remote address overwritten when deploying docker images
by default docker uses bridge network
48 replies
RRailway
Created by leiferksn on 2/23/2024 in #✋|help
Remote address overwritten when deploying docker images
I'm not suggesting that. I just need to understand how railway handles docker networks.
48 replies
RRailway
Created by leiferksn on 2/23/2024 in #✋|help
Remote address overwritten when deploying docker images
because I don't want to switch to yet another new technology and also I'm not convinced that this is a web server/reverse proxy configuration issue, since I'me getting a result by running docker differently.
48 replies
RRailway
Created by leiferksn on 2/23/2024 in #✋|help
Remote address overwritten when deploying docker images
ok, thanks. I don't think I would be using caddy now. I'll try and figure out a way with nginx.
48 replies
RRailway
Created by leiferksn on 2/23/2024 in #✋|help
Remote address overwritten when deploying docker images
I'm not familiar with caddy, is there no example for nginx?
48 replies
RRailway
Created by leiferksn on 2/23/2024 in #✋|help
Remote address overwritten when deploying docker images
127.0.0.1
48 replies
RRailway
Created by leiferksn on 2/23/2024 in #✋|help
Remote address overwritten when deploying docker images
but only if I add --net=host to docker run
48 replies
RRailway
Created by leiferksn on 2/23/2024 in #✋|help
Remote address overwritten when deploying docker images
I've already set up remote ip mod for nginx and it's working on my local machine
48 replies
RRailway
Created by leiferksn on 2/23/2024 in #✋|help
Remote address overwritten when deploying docker images
ok, and what would be the correct configuration for my case - nginx + angular2 in a docker image?
48 replies