Skip to content

Commit

Permalink
mfix wildcard priority
Browse files Browse the repository at this point in the history
  • Loading branch information
Benedikt Strehle committed Jul 15, 2024
1 parent 1319870 commit 3b871b7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -313,12 +313,14 @@ enum ContainerStatus {
this.addLabel(`traefik.enable=true`);
this.addLabel(`traefik.http.routers.${name}.rule=${hostRule}`);
this.addLabel(`traefik.http.routers.${name}.entrypoints=web`);
this.addLabel(`traefik.http.routers.${name}.priority=10`);
// TODO: only workaoound for *.unyt.app domains: prio 1
this.addLabel(`traefik.http.routers.${name}.priority=${hasWildcard ? 1 : 10}`);
this.addLabel(`traefik.http.middlewares.redirect-to-https.redirectscheme.scheme=https`);
this.addLabel(`traefik.http.routers.${name}.middlewares=redirect-to-https@docker`);
this.addLabel(`traefik.http.routers.${name}-secured.rule=${hostRule}`);
this.addLabel(`traefik.http.routers.${name}-secured.tls=true`);
this.addLabel(`traefik.http.routers.${name}-secured.priority=10`);
// TODO: only workaoound for *.unyt.app domains: prio 1
this.addLabel(`traefik.http.routers.${name}-secured.priority=${hasWildcard ? 1 : 10}`);

if (hasWildcard) {
const rawHost = host.slice(2);
Expand Down

0 comments on commit 3b871b7

Please sign in to comment.