Replies: 8 comments 9 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: trueit 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.
-
Beta Was this translation helpful? Give feedback.
-
|
Kamal 2.7.0 + Cloudflare Origin Certificate + cloudflare/cloudflared:2025.7.0 image I finally made cloudflare tunnel work with custom certificate + ssl_redirect: false AND that configuration for the tunnel (NO https - NO port):
|
Beta Was this translation helpful? Give feedback.
-
|
Once I deploy the second app on that server in conjunction with Cloudflare tunnel as also discussed here, I get the following error on deployment:
probably due to a name conflict with the other proxy. any way to change the proxy host name http://kamal-proxy to something else per deployment? |
Beta Was this translation helpful? Give feedback.
-
|
@wiemann giving some thought, I actually did not understand what you mean, and I got it working on the same machine (hetzner) using the same tunnel, but different connectors. Here are my configs: servers:
web:
hosts:
- <my_ssh>
accessories:
cloudflared:
image: cloudflare/cloudflared:latest
role: web
cmd: tunnel --no-autoupdate run
env:
secret:
- TUNNEL_TOKENHope it helps somehow :D |
Beta Was this translation helpful? Give feedback.


Uh oh!
There was an error while loading. Please reload this page.
-
Is there any plan supporting cloudflare tunnels (cloudflared) to expost web apps?
Beta Was this translation helpful? Give feedback.
All reactions