refactor: Update traefik-public and traefik-public-local HTTPS routers in Swarm core.yml and local_core.yml

This commit is contained in:
2024-09-05 21:59:28 +08:00
parent 699aa5757f
commit d3ff8215e6
+2 -2
View File
@@ -75,7 +75,7 @@ services:
- treafik.http.middlewares.neo4j_strip.stripprefix.prefixes=/neo4j
# traefik-https the actual router using HTTPS
- traefik.http.routers.traefik-public-https.entrypoints=https
- traefik.http.routers.traefik-public-https.rule=HostRegexp(`dashboard\.(.*)\.lol`)
- traefik.http.routers.traefik-public-https.rule=Host(`dashboard.${SLD}.lol`)
# Use the "le" (Let's Encrypt) resolver created below
- traefik.http.routers.traefik-public-https.tls.certresolver=le
# Enable HTTP Basic auth, using the middleware created above
@@ -84,7 +84,7 @@ services:
- traefik.http.routers.traefik-public-https.service=api@internal
# Local service router
- traefik.http.routers.traefik-public-local-https.entrypoints=https
- traefik.http.routers.traefik-public-local-https.rule=HostRegexp(`dashboard\.(.*)\.local`)
- traefik.http.routers.traefik-public-local-https.rule=HostRegexp(`dashboard.${SLD}.local`)
- traefik.http.routers.traefik-public-local-https.tls=true
# Enable HTTP Basic auth, using the middleware created above
- traefik.http.routers.traefik-public-local-https.middlewares=admin-auth