Replies: 5 comments 2 replies
-
I'm using Caddy as a load balancer to reverse proxy into private VMs. You could use cloudflared to achieve that as well... |
Beta Was this translation helpful? Give feedback.
-
No plans for native support. You can experiment with deploying cloudflared as a Kamal accessory, though, and having it target an alternate Traefik entrypoint. Odds are good you can wire it up without additional support from Kamal. |
Beta Was this translation helpful? Give feedback.
-
Thanks @jeremy ! I'm sharing my config: accessories:
cloudflared:
image: cloudflare/cloudflared:2024.6.0
host: 192.168.3.80
port: 10801
env:
secret:
- TUNNEL_TOKEN
cmd: tunnel run
# Configure custom arguments for Traefik. Be sure to reboot traefik when you modify it.
traefik:
host_port: 18081
args:
accesslog: true it works perfectly. |
Beta Was this translation helpful? Give feedback.
-
thanks @imWildCat, thank for your sharing, that's work perfectly.
I also wrap up it into a short post https://vinguyen.blog/secure-website-hosting-without-open-ports-cloudflare-tunnel-and-kamal-deploy/ |
Beta Was this translation helpful? Give feedback.
-
I struggled for a couple hours trying to get @imWildCat's solution to work with Kamal 2, which uses kamal-proxy in lieu of traefik. Turns out the To solve this, inside Cloudflare website's tunnel configuration, set the target to kamal-proxy's container directly. |
Beta Was this translation helpful? Give feedback.
-
Is there any plan supporting cloudflare tunnels (cloudflared) to expost web apps?
Beta Was this translation helpful? Give feedback.
All reactions