TIP: Click on subject to list as thread! ANSI
echo: synchronet
to: ALL
from: RAGNAROK
date: 2020-10-10 23:35:00
subject: proxy nginx x-real-ip

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?

127.0.0.1 - - [10/Oct/2020:22:08:24 -0300] "GET
//?page=001-forum.ssjs&sub=doven...
127.0.0.1 - - [10/Oct/2020:22:09:08 -0300] "GET //?page=001-forum.ssjs&su...

file1.ext was HTTP-downloaded by Guest [127.0.0.1]

file2.ext was HTTP-downloaded by Guest [127.0.0.1]

file3.ext was HTTP-downloaded by Guest [127.0.0.1]

    
thanks!!!!
Saludos!

--
Ragnarok

Dock Sud BBS
https://bbs.docksud.com.ar
tw: @docksud
fb: DockSudBBS

---
 þ Synchronet þ Dock Sud BBS TLD 24 HS - bbs.docksud.com.ar
* 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™.