From 6e6982b4fa361fd5e247da760d751dbfc474285e Mon Sep 17 00:00:00 2001 From: Navratan Lal Gupta Date: Sat, 18 Nov 2023 10:51:29 +0530 Subject: [PATCH] traefik: redirect http to https --- docker-compose-traefik.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docker-compose-traefik.yml b/docker-compose-traefik.yml index 7366330..093f862 100644 --- a/docker-compose-traefik.yml +++ b/docker-compose-traefik.yml @@ -12,6 +12,9 @@ services: - --providers.docker.network=mynetwork - --entrypoints.web.address=:80 - --entrypoints.websecure.address=:443 + - --entrypoints.web.http.redirections.entryPoint.to=websecure + - --entrypoints.web.http.redirections.entryPoint.scheme=https + - --entrypoints.web.http.redirections.entryPoint.permanent=true - --certificatesresolvers.le.acme.email=${LE_EMAIL} - --certificatesresolvers.le.acme.storage=/letsencrypt/acme.json - --certificatesresolvers.le.acme.httpChallenge.entrypoint=web