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:
|
||||
# Load Balancer / SSL / Web Server
|
||||
revproxy:
|
||||
image: traefik:v2.1
|
||||
image: traefik:v2.2
|
||||
restart: always
|
||||
networks:
|
||||
- public
|
||||
|
|
|
@ -6,6 +6,11 @@ defaultEntryPoints = ["web", "websecure"]
|
|||
[entryPoints]
|
||||
[entryPoints.web]
|
||||
address = ":80"
|
||||
[entryPoints.web.http]
|
||||
[entryPoints.web.http.redirections]
|
||||
[entryPoints.web.http.redirections.entryPoint]
|
||||
to = "websecure"
|
||||
scheme = "https"
|
||||
[entryPoints.websecure]
|
||||
address = ":443"
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue