add multi domain support

This commit is contained in:
2025-04-22 20:21:47 +02:00
parent 955ea36433
commit cf702fa316
2 changed files with 2 additions and 2 deletions

View File

@@ -1,7 +1,7 @@
USER_ID=1000 USER_ID=1000
GROUP_ID=1000 GROUP_ID=1000
DOMAIN=127.0.0.1 TRAEFIK_HOST_RULE=Host(`example.com`) || Host(`www.example.com`)
LISTEN_PORT=8000 LISTEN_PORT=8000

View File

@@ -14,7 +14,7 @@ services:
- "traefik.enable=true" - "traefik.enable=true"
- "traefik.docker.network=web" - "traefik.docker.network=web"
# Routeur HTTP (port 80) pour la redirection vers HTTPS # Routeur HTTP (port 80) pour la redirection vers HTTPS
- "traefik.http.routers.web-http.rule=Host(`${DOMAIN}`)" - "traefik.http.routers.web-http.rule=${TRAEFIK_HOST_RULE}"
- "traefik.http.routers.web-http.entrypoints=web" - "traefik.http.routers.web-http.entrypoints=web"
- "traefik.http.routers.web-http.middlewares=redirect-to-https" - "traefik.http.routers.web-http.middlewares=redirect-to-https"