Hi all,
installed Laravel Websocket on subdomain and it works fine over ws://
Now i'm looking for use NGINX to manage WSS:// requests to WS://
For example wss://subdomain.domain.ext:6001/app/key1
This NGINX addictional directives not work:
location /app {
proxy_pass http://127.0.0.1:6001;
proxy_set_header Host $host;
proxy_read_timeout 60;
proxy_connect_timeout 60;
proxy_redirect off;
# Allow the use of websockets
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
# Other
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;
proxy_pass_request_headers on;
}
Any idea how solve this problem?
Thanks
installed Laravel Websocket on subdomain and it works fine over ws://
Now i'm looking for use NGINX to manage WSS:// requests to WS://
For example wss://subdomain.domain.ext:6001/app/key1
This NGINX addictional directives not work:
location /app {
proxy_pass http://127.0.0.1:6001;
proxy_set_header Host $host;
proxy_read_timeout 60;
proxy_connect_timeout 60;
proxy_redirect off;
# Allow the use of websockets
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
# Other
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;
proxy_pass_request_headers on;
}
Any idea how solve this problem?
Thanks