From 136570d79ea6c2088a683b39c6108430a768aa0d Mon Sep 17 00:00:00 2001
From: Quentin Duchemin <quentinduchemin@tuta.io>
Date: Fri, 4 Sep 2020 12:51:33 +0200
Subject: [PATCH] [Traefik] Use clear custom entrypoint name, fix config path,
 fix redirection

---
 pica-traefik/traefik.toml | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/pica-traefik/traefik.toml b/pica-traefik/traefik.toml
index 0b0766a0..7a8b6057 100644
--- a/pica-traefik/traefik.toml
+++ b/pica-traefik/traefik.toml
@@ -3,15 +3,15 @@
   checkNewVersion = true
 
 [entryPoints]
-  [entryPoints.http]
+  [entryPoints.web]
     address = ":80"
-    [entryPoints.http.redirections.entryPoint]
-      to = "https"
+    [entryPoints.web.http.redirections.entryPoint]
+      to = "websecure"
       scheme = "https"
-  [entryPoints.https]
+  [entryPoints.websecure]
     address = ":443"
     middlewares = ["hardening@file", "compression@file"]
-    [entryPoints.https.tls]
+    [entryPoints.websecure.tls]
       certResolver = "letsencrypt"
       options = "tls12@file"
 
@@ -24,7 +24,7 @@
     swarmMode = false
     exposedByDefault = false
   [providers.file]
-    filename = "/etc/traefik/traefik_dynamic.toml"
+    filename = "/traefik_dynamic.toml"
     watch = true
 
 [log]
-- 
GitLab