TIP: Click on subject to list as thread! ANSI
echo: synchronet
to: RAGNAROK
from: DIGITAL MAN
date: 2020-10-10 21:01:00
subject: proxy nginx x-real-ip

  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

This Is Spinal Tap quote #28:
We've got Armadillos in our trousers. It's really quite frightening.
Norco, CA WX: 64.9øF, 82.0% humidity, 7 mph NE wind, 0.00 inches rain/24hrs
--- SBBSecho 3.11-Linux
* Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)

SOURCE: echomail via QWK@docsplace.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.