Open codenamegary opened 1 year ago
I managed to get this working but I'm not proud of my methods. Used a combination of local-ssl-proxy
and certbot. 😂ðŸ˜
Not sure about the SSL flags, but to be sure, you meant 'wss://' not 'ws://' for secure websockets correct?
Yep that's right. Updated.
@codenamegary Mind sharing how you created a workaround? I'm having the same issue
@markcipolla - Sorry for the super late response. My workaround was just to use this.
https://github.com/cameronhunter/local-ssl-proxy
I used certbot to generate a certificate then just run local-ssl-proxy accordingly to forward from 443 to whatever port my HocusPocus is running on.
Hi @codenamegary,
Thanks for sharing your solution. Are you using HocuspocusProvider or a custom Provider (y-websocket) to connect to the HocusPocus Server via local-ssl-proxy?
Cheers!
I'm using HocuspocusProvider.
The problem I am facing I have this up and running and it works great! I'm facing challenges when serving up something over SSL, and then trying to connect to wss:// in production. Browsers throw mixed content errors and it doesn't work.
The solution I would like
And essentially just follow along the ws example from there.
Alternatives I have considered I have tried every AWS load balancer config and an nginx proxy but nothing seems to work.
Additional context I think I have a handle on how this could work, happy to put together a pull request if it's desireable.