SYNCHRONET -------------- < Пред. | След. > -- < @ > -- < Сообщ. > -- < Эхи > --
 Nп/п : 41 из 100
 От   : Tmccaf                              1:103/705         06 фев 26 13:02:22
 К    : All                                                   06 фев 26 00:09:02
 Тема : Nginx as proxy?
----------------------------------------------------------------------------------
                                                                                 
@MSGID: 55787.sync@1:103/705 2dec66c9
@TZUTC: -0800
@PID: Synchronet 3.21b-Linux master/944c13103 Feb 06
2026 GCC 12.2.0
@TID: SBBSecho 3.36-Linux master/944c13103 Feb 06
2026 GCC 12.2.0
@BBSID: VERT
@CHRS: UTF-8 4
@FORMAT: flowed
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/;
--- SBBSecho 3.36-Linux
 * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
SEEN-BY: 50/109 103/705 154/10 218/700 221/1
240/1120 280/464 301/1 113
SEEN-BY: 341/66 463/68 712/848 5000/111 5020/101
715 848 1042 4441 12000
SEEN-BY: 5030/49 1081 5060/900 5061/133 5075/128
5083/444
@PATH: 103/705 301/1 5020/1042 4441



   GoldED+ VK   │                                                 │   09:55:30    
                                                                                
В этой области больше нет сообщений.

Остаться здесь
Перейти к списку сообщений
Перейти к списку эх