Update Traefik Example

A recent update to Traefik has made a breaking change with this configuration where the three piped domains can not be separated by commas anymore, instead the proper syntax is now an individual Host variable for each domain separated by && or ||, in this example I've opted for || as that works on my machine.
Documentation for this syntax can be found here: https://doc.traefik.io/traefik/v3.0/routing/routers/#rule
This commit is contained in:
Wave 2024-05-11 10:27:07 +00:00 committed by GitHub
parent ed1db90613
commit 53af2e38e6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -86,7 +86,7 @@ This must be applied on the nginx container.
``` ```
labels: labels:
- "traefik.enable=true" - "traefik.enable=true"
- "traefik.http.routers.piped.rule=Host(`hostname`,`hostname2`,`hostname3`)" - "traefik.http.routers.piped.rule=Host(`piped.yourdomain.tld`) || Host(`pipedapi.yourdomain.tld`) || Host(`pipedproxy.yourdomain.tld`)"
- "traefik.http.routers.piped.entrypoints=web" - "traefik.http.routers.piped.entrypoints=web"
``` ```