HTTPS redirection (duplicated?)
claha opened this issue · comments
Thanks for this repo and all the videos! Currently setting up traefik myself and I'm looking at the http to https redirection.
To me it seems that a redirection from http to https is defined here (at entrypoints.http) https://github.com/techno-tim/techno-tim.github.io/blob/master/reference_files/traefik-portainer-ssl/traefik/traefik.yml
I use this myself and it seems to work.
But it is also defined as a middleware here https://github.com/techno-tim/techno-tim.github.io/blob/master/reference_files/traefik-portainer-ssl/traefik/docker-compose.yml
Are both needed? If not, is there a preferred way?
I guess a third option is to instead use the https-redirectscheme middleware defined in https://github.com/techno-tim/techno-tim.github.io/blob/master/reference_files/traefik-portainer-ssl/traefik/config.yml and then instead use middleware=https-redirectscheme@file
in docker-compose.