BBS: TELESC.NET.BR
Assunto: Nginx as proxy?
De: Tmccaf
Data: Fri, 6 Feb 2026 13:02:00 -0800
-----------------------------------------------------------
I am trying to figure out how to use Nginx as proxy. I tried the following and
get 502 Bad Gateway.
I changed Http port of SBBS to 8088.
server {
server_name galaxybbs.net www.galaxybbs.net;
listen 11235 ssl;
location / {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_pass http://myprivateipofmachine:1213;
}
location ^~ /webbbs {
try_files $uri @app;
}
location @app {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://http://myprivateipofmachine:8088;
proxy_redirect off;
rewrite /webbbs(.*) /$1 break;
}
# api call seems to be absolute, so you must alias /api/ url's
location /api/ {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header Host $host;
proxy_pass http://http://myprivateipofmachine/api/;
n
---
mSynchronetn hgVertrauen n hHome of Synchronet n gh[vert/cvs/bbs].synchro.net
-----------------------------------------------------------
[Voltar]