cloudflared icon indicating copy to clipboard operation
cloudflared copied to clipboard

💡 Ingress rule based on protocol/port

Open rany2 opened this issue 1 year ago • 2 comments

Describe the feature you'd like Currently in my config.yml, I'm matching against hostname however it appears there is no way I could match based the given protocol or port. To be a bit clearer, I'd like to use a specific service for HTTP traffic and another for HTTPS. I've looked around and it appears that this is not possible currently.

Describe alternatives you've considered N/A

Additional context N/A

rany2 avatar Feb 18 '24 21:02 rany2

Adding a bit to it - in case of a self-hosted Git server, it would be nice to map 443 and 22 to the same hostname and have them handled as HTTPS and SSH accordingly.

Artemigos avatar Oct 29 '24 08:10 Artemigos

I'm trying to do something like this as well, mapping incoming traffic on [domain] port 25 to a specific service. maybe something like

ingress:
  - hostname: tcp://example.com:25
    service: tcp://internal-service:25

odama626 avatar Mar 25 '25 19:03 odama626