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
Run npm run dev and have valid SSL certificate on https://remix.hostname.dev:3000
Expected Behavior
The LiveReload websocket server should start on the configured protocol (wss), hostname, and port so the client connects to the right location. e.g. wss://remix.hostname.dev:8002
OR
The websocket client should connect to ws://localhost:8002 and not use the hostname and wss protocol.
We could probably solve this by changing the client to always connect to the websocket server on ws://locahost:port since it's only a CLI development tool.
The text was updated successfully, but these errors were encountered:
There is a patch-package here that I'm using in the meantime. Would be happy to contribute if anyone would like to walk me through the process. (I'm very new to contributing and especially creating a proper test)
What version of Remix are you using?
1.7.4
Steps to Reproduce
There is a repo here... https://github.com/JeffEmery/remix-ssl
Start with
npx create-remix@latest
-> Express ServerCreate a custom Remix Run - Express Server
server.js
that uses https and hostname. e.g. https://remix.hostname.dev:3000Copy
dev-key.pem
anddev-certificate.pem
into an/ssl
folder and reference them from the.env
fileMake the
.env
variables available inserver.js
Use a self signed certificate for the custom domain
openssl req -newkey rsa:2048 -nodes -keyout dev-key.pem -x509 -days 365 -out dev-certificate.pem -config hostname.dev.cnf
openssl pkcs12 -inkey dev-key.pem -in dev-certificate.pem -export -out dev-certificate.p12
Use a hosts file to resolve to the localhost
Run
npm run dev
and have valid SSL certificate onhttps://remix.hostname.dev:3000
Expected Behavior
The LiveReload websocket server should start on the configured protocol (wss), hostname, and port so the client connects to the right location. e.g. wss://remix.hostname.dev:8002
OR
The websocket client should connect to ws://localhost:8002 and not use the hostname and wss protocol.
Actual Behavior
The LiveReload websocket only uses the configured port. The websocket server is not started with wss and the configured hostname.
The LiveReload component tries to connect to the configured protocol, hostname and port that doesn't match the server.
We could probably solve this by changing the client to always connect to the websocket server on ws://locahost:port since it's only a CLI development tool.
The text was updated successfully, but these errors were encountered: