Skip to content

Commit 02e333c

Browse files
authored
Replacing depreciated sslRedirect (#163)
According to the logs the command is depreceated. Documentation suggests either EntryPoint Redirection or the Redirection Middleware. Here, the EntryPoint Redirection is implemented. Co-authored-by: Jonas <[email protected]>
1 parent 8f06466 commit 02e333c

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

reference_files/traefik-portainer-ssl/traefik/config.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,6 @@ http:
187187
default-headers:
188188
headers:
189189
frameDeny: true
190-
sslRedirect: true
191190
browserXssFilter: true
192191
contentTypeNosniff: true
193192
forceSTSHeader: true
@@ -201,7 +200,6 @@ http:
201200
idrac:
202201
headers:
203202
frameDeny: true
204-
sslRedirect: true
205203
browserXssFilter: true
206204
forceSTSHeader: true
207205
stsIncludeSubdomains: true

reference_files/traefik-portainer-ssl/traefik/traefik.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ api:
44
entryPoints:
55
http:
66
address: ":80"
7+
http:
8+
redirections:
9+
entryPoint:
10+
to: https
11+
scheme: https
712
https:
813
address: ":443"
914
serversTransport:
@@ -23,4 +28,4 @@ certificatesResolvers:
2328
provider: cloudflare
2429
resolvers:
2530
- "1.1.1.1:53"
26-
- "1.0.0.1:53"
31+
- "1.0.0.1:53"

0 commit comments

Comments
 (0)