Skip to content

Commit

Permalink
add traefik priority
Browse files Browse the repository at this point in the history
  • Loading branch information
Benedikt Strehle committed Jul 15, 2024
1 parent 99237d7 commit 1319870
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -313,10 +313,12 @@ 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`);
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`);

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

0 comments on commit 1319870

Please sign in to comment.