Update traefik/readme.md

This commit is contained in:
2024-03-05 19:58:13 +03:00
parent a7f8c474b3
commit 4fcd34536a
+2 -2
View File
@@ -69,7 +69,7 @@ Then all you have to do is add these labels to the compose.yml of all your conta
- "traefik.enable=true"
- "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.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-secure.entrypoints=https"
- "traefik.http.routers.CONTAINER_NAME-secure.rule=Host(`SUBDOMAIN.YOURDOMAIN.COM`)"
- "traefik.http.routers.CONTAINER_NAME-secure.tls=true"
@@ -104,7 +104,7 @@ services:
- "traefik.enable=true"
- "traefik.http.routers.heimdall.entrypoints=http"
- "traefik.http.routers.heimdall.rule=Host(`heimdall.example.com`)"
- traefik.http.routers.heimdall.middlewares=https-redirect@file
- "traefik.http.routers.heimdall.middlewares=https-redirect@file"
- "traefik.http.routers.heimdall-secure.entrypoints=https"
- "traefik.http.routers.heimdall-secure.rule=Host(`heimdall.example.com`)"
- "traefik.http.routers.heimdall-secure.tls=true"