Set regex in a variable for traefik

This commit is contained in:
Colin Hebert
2022-12-26 09:53:09 +01:00
parent 28e0fce8f1
commit 102395a089

View File

@@ -49,7 +49,7 @@ services:
labels:
nas-compose.boostrap: true
traefik.enable: true
traefik.http.routers.portainer.rule: HostRegexp(`portainer(\.[a-z0-9-]+)?\.dedicated\.contact`)
traefik.http.routers.portainer.rule: HostRegexp(`portainer{subdomain:(\.[a-z0-9-]+)?}.dedicated.contact`)
traefik.http.services.portainer.loadbalancer.server.port: 9443
traefik.http.services.portainer.loadbalancer.server.scheme: https