Replies: 6 comments 2 replies
-
I think you can refer to the content in this link(https://sspai.com/post/79278), but it is in Chinese. |
Beta Was this translation helpful? Give feedback.
-
@queen4me
Then add modify your cloudflare tunnel with a Public Hostname: The vaultwarden URL specified above, is based on how this docker vaultwarden is configured:
|
Beta Was this translation helpful? Give feedback.
-
As it happens I spent the entire day figuring this out myself, and finally have it working! Here are the barebones instructions (starting point I got from the comments in this page, credit to various authors: https://www.reddit.com/r/unRAID/comments/v1px6v/cloudflare_tunnel_docker/) Assumptions:
(substitute your own values for the above where applicable) Prerequisites:
Cloudflare (CF) / DNS setup:
Unraid
You should now be able to access VW from your browser by putting in vault.example.com! Things you don't need to do because of all of the above
I think that's it! This is all from memory so apologies if there are bits wrong/incomplete, let me know and I'll correct. |
Beta Was this translation helpful? Give feedback.
-
Note that your traffic is still passing through local network this way, I don't know the details of how Unraid handles this however there are 2 ways to avoid it:
|
Beta Was this translation helpful? Give feedback.
-
Note that Vaultwarden has numerous example setups of how to do this on the wiki: https://github.com/dani-garcia/vaultwarden/wiki/Proxy-examples |
Beta Was this translation helpful? Give feedback.
-
What about security within Cloudflare? It's well known that traffic within CF tunneling servers is decrypted. It would seem then that a bad actor within CF has plaintext access to all Vaultwarden traffic. Wouldn't it be safer using a domain w/HTTPS, or a VPN, or Tailscale? |
Beta Was this translation helpful? Give feedback.
-
I'd like to use Cloudflare Tunnel instead of portforwarding on my router because this seems more secure.
In the Cloudflare Docs is no information on howto connect to a docker container (in my example with Vaultwarden) using Cloudflare Tunnels.
If anybody has a link containing some information how to use Cloudflare Tunnels to securely connect to a Docker container in my home network this would help me a lot.
Thanks in advance for any hints.
Beta Was this translation helpful? Give feedback.
All reactions