diff --git a/.env.dist b/.env.dist index 3321901..1b638a5 100644 --- a/.env.dist +++ b/.env.dist @@ -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 diff --git a/docker-compose.yml b/docker-compose.yml index 1d0cc50..82dd193 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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"