From ca188ab1b48396ed38b5345dcf7af99393dcda81 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Sat, 13 Jun 2020 21:09:48 +0100 Subject: [PATCH] Rename middleware It's not actually applying a HSTS header --- ansible/roles/traefik/files/file-provider.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ansible/roles/traefik/files/file-provider.yml b/ansible/roles/traefik/files/file-provider.yml index cc5615e..0811eba 100644 --- a/ansible/roles/traefik/files/file-provider.yml +++ b/ansible/roles/traefik/files/file-provider.yml @@ -6,15 +6,15 @@ http: - "10.0.0.0/8" - "172.16.0.0/12" - "192.168.0.0/16" - hsts: + tls-redirect: redirectScheme: scheme: https routers: - hsts: + tls-redirect: service: ping@internal rule: PathPrefix(`/`) entryPoints: - web middlewares: - - hsts + - tls-redirect