Hi,
I'm using a HTTP and TCP router, (see yaml for my configuration). I was wondering if I can get the HTTP router to evaluate before the TCP router?
I want to achieve the following:
- traffic to http://www.domain.com/app -> should be routed to http://123.123.123.123:3000
- all other traffic should be routed to 124.124.124.124:443
What I see now, is that all traffic is routed to 124.124.124.124:443.
http:
routers:
my-app-router:
rule: "Host(`www.domain.com`) && PathPrefix(`/app`)"
priority: 10
service: my-web-app
entrypoints:
- web
services:
my-web-app:
loadBalancer:
servers:
- url: "http://123.123.123.123:3000/app"
tcp:
routers:
my-tcp-router:
rule: "HostSNI(`*`)"
priority: 20
service: my-tcp-service
services:
my-tcp-service:
loadBalancer:
servers:
- address: "124.124.124.124:443"