Using cloudflared tunnel to publish internal website, how to filter by URL path?

I have an internal web app and looking to expose certain URLs externally.

My configuration is below…

tunnel: ...
credentials-file: ...
originRequest:
  connectTimeout: 30s

ingress:
  - hostname: extranet.domain.com
    path: /toolkit.*
    service: https://extranet.domain.com:443
  - service: http_status:404
loglevel: info
logfile: /var/log/cloudflared.log

If I browse to https://extranet.domain.com/toolkit/file.pdf this works.

What also works is https://extranet.domain.com/some/other/url/info.docx

Why is the above configuration also exposing other paths? Is there a way to explicitly specify paths that should be handled by the tunnel?

How does one configure this to pass through below URLs and ignore everything else?

extranet.domain.com/toolkit_v1*
extranet.domain.com/info_v1*

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.