From 22d43c16a70e472008f6f6d8b5a0a503881f2dfd Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Tue, 6 Apr 2021 11:56:05 +0100 Subject: [PATCH] Correctly redirect http traffic to https Bug caused by https://github.com/traefik/traefik/issues/8035 --- ansible/roles/traefik/files/traefik.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ansible/roles/traefik/files/traefik.yml b/ansible/roles/traefik/files/traefik.yml index 7a79df3..c2282af 100644 --- a/ansible/roles/traefik/files/traefik.yml +++ b/ansible/roles/traefik/files/traefik.yml @@ -2,8 +2,10 @@ entryPoints: web: address: :80 http: - middlewares: - - tls-redirect@file + redirections: + entryPoint: + to: web-secure + scheme: https proxyProtocol: trustedIPs: - "{{ wireguard.cidr }}"