Welcome! Log In Create A New Profile

Advanced

help: proxy to https is working websockets is not!

February 15, 2022 08:56PM
I have the following configuration working. I am able to login to the application and most of it works. However there are
certain elements which function as websockets. I see this message in the browser devtools:

WebSocket connection to 'wss://erx.asdf.com/ws/stats' failed: edge.min.js:3210

How can I get this last part working?

Here is my configuration so far:

server {
listen 80;
server_name erx.asdf.com;
location / { return 301 https://$host$request_uri; }
}

upstream backend {
server 192.168.1.1:443;
}

server {
listen 443;
server_name erx.asdf.com;
location / {
proxy_pass https://backend;
proxy_ssl_server_name on;
proxy_ssl_name DOMAIN;
proxy_set_header Host $host;
}
}
Subject Author Posted

help: proxy to https is working websockets is not!

mevan February 15, 2022 08:56PM

Re: help: proxy to https is working websockets is not!

Francis Daly February 16, 2022 03:30AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 235
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready