How to websock.

#1
Hi, how can i define this ningx configuration in openlitespeed,

server {
listen 80;
server_name forum.tecmint.lan;

location / {
proxy_pass http://unix:/var/discourse/shared/standalone/nginx.http.sock:;
proxy_set_header Host $http_host;
proxy_http_version 1.1;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}
 

Pong

Administrator
#4
Did you test your backend first to make sure it works? Also how did you configure and how did you test? What error you saw and what was in error log? We might need every detail before we can provide any recommendation to help you figure out why.
 
#5
Did you test your backend first to make sure it works? Also how did you configure and how did you test? What error you saw and what was in error log? We might need every detail before we can provide any recommendation to help you figure out why.
Thanks for your answer, I want to install discourse with cyberpanel and docker, discourse in docker runs on a nignx server by port 80 and 443 respectively, like openlitespeed, the solution of them is to place a web proxy via socket unix on another nginx server outside the container, it is possible to replicate that configuration in openlitespeed,

Link Oficial Install Discourse

Thks,
 

Pong

Administrator
#6
We still need more technical details for each question but seem you did not provide enough technical details for any questions we asked. Let's start one by one then.

1. Did you test your backend and is it working? can you show us the detailed steps for your test? test Example can be like the following but we need details from you.
https://www.litespeedtech.com/suppo...-a-websocket-proxy#test_the_backend_websocket

2. If you backend test ok, how did you setup LSWS for websocket?
 
Last edited:
Top