blenderskool / blaze

⚡ File sharing progressive web app built using WebTorrent and WebSockets
https://blaze.now.sh/
MIT License
2.27k stars 279 forks source link

Running blaze behind Nginx Reverse Proxy #169

Closed SomeCodecat closed 1 year ago

SomeCodecat commented 1 year ago

I wanted to know whether it would be possible to run Blaze behind Nginx Reverse Proxy. My problem is that I cannot establish a peer to peer connection with that. I can see the Frontend but the server does not even get any requests when i view the logs.

TL:DR Can I run Blaze behind Nginx Reverse Proxy? If yes, how?

blenderskool commented 1 year ago

@SomeCodecat Yes, you can use Nginx reverse proxy for Blaze. It's also a part of the Blaze docker images and you can check the configurations they use for reference here https://github.com/blenderskool/blaze/tree/master/nginx incase you missed some rule

Do note that enabling websocket connections with server behind Nginx proxy require additional configuration, which again is available in the files linked above.

blenderskool commented 1 year ago

Closing as there is no update. Please reopen if you have any more questions.