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
{{ message }}
Repository navigation
HMR broken when using reverse proxy with SSL #4292
When the websocket url is generated in client-src/utils/createSocketURL.js, the port from the webpack dev server is always used while the hostname and protocol from the self.location is used. This causes the connection to never succeed.
For example, if the webpack dev server is running on port 3000 and the url I use to access my local development website is https://app.mydomain.com the websocket url that is used is wss://app.mydomain.com:3000/ws
Expected Behavior
If the webpack dev server is running on port 3000 and the url I use to access my local development website is https://app.mydomain.com the websocket url that should be used is wss://app.mydomain.com/ws
How Do We Reproduce?
Use Let's Encrypt to issue a SSL certificate for a domain you control.
Setup nginx to be a reverse proxy for your desired domain name. The following is a sample section in the nginx conf to set this up. Make sure to replace the path to your certificate and the domain name.
Activity
alexander-akait commentedon Feb 17, 2022
In this case you should set valid URL for client, we have options for these, sorry we can't fix it here
alexander-akait commentedon Feb 17, 2022
We can't know your proxy and can't know valid URL for proxy, so you should specify them