Updates Traefik to v2.2 and enables global entry point redirection http to https
See also PR: https://github.com/containous/traefik/pull/6417
This commit is contained in:
parent
5d3ca738c0
commit
fa2bc834ef
2 changed files with 6 additions and 1 deletions
|
@ -8,7 +8,7 @@ networks:
|
||||||
services:
|
services:
|
||||||
# Load Balancer / SSL / Web Server
|
# Load Balancer / SSL / Web Server
|
||||||
revproxy:
|
revproxy:
|
||||||
image: traefik:v2.1
|
image: traefik:v2.2
|
||||||
restart: always
|
restart: always
|
||||||
networks:
|
networks:
|
||||||
- public
|
- public
|
||||||
|
|
|
@ -6,6 +6,11 @@ defaultEntryPoints = ["web", "websecure"]
|
||||||
[entryPoints]
|
[entryPoints]
|
||||||
[entryPoints.web]
|
[entryPoints.web]
|
||||||
address = ":80"
|
address = ":80"
|
||||||
|
[entryPoints.web.http]
|
||||||
|
[entryPoints.web.http.redirections]
|
||||||
|
[entryPoints.web.http.redirections.entryPoint]
|
||||||
|
to = "websecure"
|
||||||
|
scheme = "https"
|
||||||
[entryPoints.websecure]
|
[entryPoints.websecure]
|
||||||
address = ":443"
|
address = ":443"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue