Synchronet v3.19b-Win32 (install) has been released (Jan-2022).

You can donate to the Synchronet project using PayPal.

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
howto:nginx [2022/01/17 07:00] – more formating ragnarokhowto:nginx [2022/01/17 07:18] (current) – add non root url example ragnarok
Line 32: Line 32:
 Here is an example configuration for proxying to WS: Here is an example configuration for proxying to WS:
  
-  server { +    server { 
-        listen       11235 ssl; +       listen       11235 ssl; 
-   location / { +       location / { 
-  proxy_set_header X-Real-IP $remote_addr; +           proxy_set_header X-Real-IP $remote_addr; 
-    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; +           proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; 
-  proxy_set_header Host $http_host; +           proxy_set_header Host $http_host; 
-  proxy_set_header X-Forwarded-Proto $scheme; +           proxy_set_header X-Forwarded-Proto $scheme; 
-  proxy_pass         http://10.0.0.10:1123; +           proxy_pass         http://10.0.0.10:1123; 
-   }+       }
        ssl_certificate      web.cer;        ssl_certificate      web.cer;
        ssl_certificate_key  web.key;        ssl_certificate_key  web.key;
Line 57: Line 57:
      
 This will cause the fTelnet to timeout (regardless if you are using fTelnet proxy or not).  This will cause the fTelnet to timeout (regardless if you are using fTelnet proxy or not). 
 +
 +===== Using synchronet on non-root url =====
 +
 +Example for run sbbs on /webbbs url
 +
 +
 +    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://127.0.0.1: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://127.0.0.1:8088/api/;
 +    }
 +
 +    
 +
 +
  
 ===== See Also ===== ===== See Also =====