Skip to content

Instantly share code, notes, and snippets.

@ismael3s
Last active October 26, 2024 19:16
Show Gist options
  • Select an option

  • Save ismael3s/3a21331c698388d9c0a09cef96815610 to your computer and use it in GitHub Desktop.

Select an option

Save ismael3s/3a21331c698388d9c0a09cef96815610 to your computer and use it in GitHub Desktop.
http:
routers:
app-01-root:
rule: "Path(`/`) || Host(`localhost`) || Host(`teste-webapp-gma2b9f2gac0dabm.canadacentral-01.azurewebsites.net`)"
priority: 1
service: app-01
app-01:
rule: "PathPrefix(`/app-01`) || HeaderRegexp(`Referer`, `.*app-01.*`)"
priority: 10
service: app-01
middlewares:
- app-01-strip-prefix
app-02:
rule: "PathPrefix(`/app-02`) || HeaderRegexp(`Referer`, `.*app-02.*`)"
priority: 10
service: app-02
middlewares:
- app-02-strip-prefix
middlewares:
app-01-strip-prefix:
stripPrefix:
prefixes:
- "/app-01"
- "/app-01/"
app-02-strip-prefix:
stripPrefix:
prefixes:
- "/app-02"
- "/app-02/"
services:
app-01:
loadBalancer:
servers:
- url: "http://app-01:3000"
app-02:
loadBalancer:
servers:
- url: "http://app-02:3000"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment