add multi domain support
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
USER_ID=1000
|
||||
GROUP_ID=1000
|
||||
|
||||
DOMAIN=127.0.0.1
|
||||
TRAEFIK_HOST_RULE=Host(`example.com`) || Host(`www.example.com`)
|
||||
|
||||
LISTEN_PORT=8000
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ services:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.docker.network=web"
|
||||
# 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.middlewares=redirect-to-https"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user