How to strip subpath from cloudflared tunnel end point?
Hello there, I wondered if any of you clever people knew how to do this? I couldn't find anything more about working with the end "Path" in the docs. Is there a command line switch for
tunnel
or something? Requests to my end point on its subpath, get forwarded to services on my server including the subpath ("ribbydibby
"):
3 Replies
Might not be a way to strip it on cloudflares end currently, but you could put a reverse proxy in between your app and the tunnel which strips the path
Caddy Community
Remove path prefix on reverse_proxy
1. Caddy version (caddy version): v2.4.6 2. How I run Caddy: caddy start a. System environment: debian OS d. My complete Caddyfile or JSON config: test.example.com { reverse_proxy /api/* localhost:9000 } 3. The problem I’m having: I want to remove the path api from uri A call to https://test.example.com/api/__health will need to pr...
Good shout. Caddy, and many routing work arounds on my end are possible too. One of my reasons for using cloudflared in the first place though, was so that I could drop Caddy.
Thanks though.