Skip to content

Commit

Permalink
fix(docker-builder): missing traefik labels for exposed app
Browse files Browse the repository at this point in the history
  • Loading branch information
nicotsx committed Dec 10, 2024
1 parent 9d8358a commit 23b35bb
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,12 @@ export class TraefikLabelsBuilder {
Object.assign(this.labels, {
'traefik.enable': true,
[`traefik.http.routers.${this.params.appId}-insecure.rule`]: 'Host(`${APP_DOMAIN}`)',
[`traefik.http.routers.${this.params.appId}-insecure.entrypoints`]: 'web',
[`traefik.http.routers.${this.params.appId}-insecure.service`]: this.params.appId,
[`traefik.http.routers.${this.params.appId}-insecure.middlewares`]: `${this.params.appId}-web-redirect`,
[`traefik.http.routers.${this.params.appId}.rule`]: 'Host(`${APP_DOMAIN}`)',
[`traefik.http.routers.${this.params.appId}.entrypoints`]: 'websecure',
[`traefik.http.routers.${this.params.appId}.service`]: this.params.appId,
[`traefik.http.routers.${this.params.appId}.tls.certresolver`]: 'myresolver',
});
}
Expand Down

0 comments on commit 23b35bb

Please sign in to comment.