You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have setup nginx.conf
server {
listen 8080;
server_name devtest.test;
location / {
proxy_pass http://devtest.test:8080; # Adjust to match your WebSocket server
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
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_set_header X-Forwarded-Proto $scheme;
}
}
I have read many articles and tried how to setup websocket on nginx but I can't make it work, I always received [WebSocket connection to 'ws://devtest.test:8080/' failed]
It only happens when I open my nginx on laragon, but if I disable it my website will work fine.
and this is my code on the site var conn = new WebSocket('ws://devtest.test:8080');
The text was updated successfully, but these errors were encountered:
I have setup nginx.conf
server {
listen 8080;
server_name devtest.test;
I have read many articles and tried how to setup websocket on nginx but I can't make it work, I always received [WebSocket connection to 'ws://devtest.test:8080/' failed]
It only happens when I open my nginx on laragon, but if I disable it my website will work fine.
and this is my code on the site var conn = new WebSocket('ws://devtest.test:8080');
The text was updated successfully, but these errors were encountered: