christensenjairus / Docker-Compose-Stack-for-Vaultwarden-Cloudflared

6 stars 0 forks source link

is WEBSOCKET_ENABLED=true working? #1

Open toyo2333 opened 7 months ago

toyo2333 commented 7 months ago

it seems that tunnel dose NOT support websocket,

so, in these stack ,is WEBSOCKET_ENABLED=true working? (Notification feature)

christensenjairus commented 7 months ago

You're right, I didn't realize cloudflare didn't have an option for websockets. It seems you'd want to use the standard cloudflare daemon (not in docker) with a config file and add a ws:// route to it.

See the last comment here: https://community.cloudflare.com/t/tunnel-with-websockets/318111

I wrote a quick blog post about how to set up a tunnel this way here: https://cyber-engine.com/blog/2022/03/16/set-up-a-website-cloudflare-tunnel-linux/

You could set up the tunnel on your host machine and expose the vaultwarden port to your host machine so the daemon can reach it.

If you find a way to make it work in docker, pull requests are welcome!

toyo2333 commented 7 months ago

You're right, I didn't realize cloudflare didn't have an option for websockets. It seems you'd want to use the standard cloudflare daemon (not in docker) with a config file and add a ws:// route to it.

See the last comment here: https://community.cloudflare.com/t/tunnel-with-websockets/318111

I wrote a quick blog post about how to set up a tunnel this way here: https://cyber-engine.com/blog/2022/03/16/set-up-a-website-cloudflare-tunnel-linux/

You could set up the tunnel on your host machine and expose the vaultwarden port to your host machine so the daemon can reach it.

If you find a way to make it work in docker, pull requests are welcome!

i just notice that the latest version solve this offficially

https://github.com/dani-garcia/vaultwarden/releases/tag/1.30.4