Re: proxy nginx x-real-ip
By: Ragnarok to All on Sat Oct 10 2020 11:32 pm
> Hola a Todes!
>
> I'm proxing the sbbs web server via nginx (as front), I set the
> x-real-ip and x-forwarder-from heder to preserve the original client
> address.
>
> location ^~ /web {
> try_files $uri @app;
> }
>
> location @app {
> rewrite /web(.*) /$1 break;
> proxy_set_header X-Real-IP $remote_addr;
> proxy_set_header X-Forwarded-For $remote_addr;
> proxy_set_header Host $host;
> proxy_pass http://127.0.0.1:8088;
> proxy_redirect off;
> }
> the logs, show 127.0.0.1 as remote address in several points,
> Can be posibble that Sync honor these headers or any workaround to obtain
> the real ip?
Likely. Take a look-see at src/sbbs3/websrvr.c and have at it! :-)
digital man
| Sysop: | Eric Oulashin |
|---|---|
| Location: | Beaverton, Oregon, USA |
| Users: | 124 |
| Nodes: | 16 (0 / 16) |
| Uptime: | 05:22:28 |
| Calls: | 7,351 |
| Calls today: | 3 |
| Files: | 9,250 |
| D/L today: |
197 files (41,754K bytes) |
| Messages: | 383,696 |
| Posted today: | 1 |