From 291fd40a8fcdf18343d3c80e1e62d2ff9bbb816d Mon Sep 17 00:00:00 2001 From: Cris Mathew Date: Tue, 5 Mar 2024 19:34:42 +0300 Subject: [PATCH] Update traefik/readme.md --- traefik/readme.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/traefik/readme.md b/traefik/readme.md index 87bac3f..846f0de 100644 --- a/traefik/readme.md +++ b/traefik/readme.md @@ -67,9 +67,9 @@ Then all you have to do is add these labels to the compose.yml of all your conta ``` labels: - "traefik.enable=true" - - "traefik.http.routers.CONTAINER_NAME.entrypoints=http" - - "traefik.http.routers.CONTAINER_NAME.rule=Host(`SUBDOMAIN.YOURDOMAIN.COM`)" - - traefik.http.routers.CONTAINER_NAME.middlewares=https-redirect@file # Remove this line if you do not want automatic http to https redirection + - "traefik.http.routers.CONTAINER_NAME.entrypoints=http" # You can skip this line if you do not need http access at all. HTTP access can be useful for internal networks DNS resolver. + - "traefik.http.routers.CONTAINER_NAME.rule=Host(`SUBDOMAIN.YOURDOMAIN.COM`)" # Same thing for this line. This is only for http. + - traefik.http.routers.CONTAINER_NAME.middlewares=https-redirect@file # Remove this line if you do not want automatic http to https redirection or if you skipped the two lines above. - "traefik.http.routers.CONTAINER_NAME.entrypoints=https" - "traefik.http.routers.CONTAINER_NAME.rule=Host(`SUBDOMAIN.YOURDOMAIN.COM`)" - "traefik.http.routers.CONTAINER_NAME.tls=true"