Update traefik to 2.2.0
This removes my custom hack for redirecting users to HTTPS
This commit is contained in:
parent
7c5968c39a
commit
8fe288549f
3 changed files with 6 additions and 10 deletions
|
@ -3,7 +3,7 @@ version: "2.3"
|
|||
services:
|
||||
traefik:
|
||||
container_name: traefik
|
||||
image: traefik:v2.1.6
|
||||
image: traefik:v2.2.0
|
||||
# command: "--log.level=DEBUG"
|
||||
network_mode: host
|
||||
volumes:
|
||||
|
|
|
@ -6,9 +6,6 @@ http:
|
|||
- "10.0.0.0/8"
|
||||
- "172.16.0.0/12"
|
||||
- "192.168.0.0/16"
|
||||
hsts:
|
||||
redirectScheme:
|
||||
scheme: https
|
||||
|
||||
routers:
|
||||
hsts:
|
||||
|
@ -16,20 +13,15 @@ http:
|
|||
rule: PathPrefix(`/`)
|
||||
entryPoints:
|
||||
- web
|
||||
middlewares:
|
||||
- hsts
|
||||
ping:
|
||||
service: ping@internal
|
||||
rule: Host(`traefik.jakehoward.tech`) && Path(`/ping/`)
|
||||
middlewares:
|
||||
- hsts
|
||||
tls:
|
||||
certResolver: le
|
||||
dashboard:
|
||||
service: dashboard@internal
|
||||
rule: Host(`traefik.jakehoward.tech`)
|
||||
middlewares:
|
||||
- hsts
|
||||
- internal-only
|
||||
tls:
|
||||
certResolver: le
|
||||
|
@ -37,7 +29,6 @@ http:
|
|||
service: api@internal
|
||||
rule: Host(`traefik.jakehoward.tech`) && PathPrefix(`/api`)
|
||||
middlewares:
|
||||
- hsts
|
||||
- internal-only
|
||||
tls:
|
||||
certResolver: le
|
||||
|
|
|
@ -1,6 +1,11 @@
|
|||
entryPoints:
|
||||
web:
|
||||
address: ":80"
|
||||
http:
|
||||
redirections:
|
||||
entryPoint:
|
||||
to: web-secure
|
||||
scheme: https
|
||||
proxyProtocol:
|
||||
trustedIPs:
|
||||
- "{{ wireguard.cidr }}"
|
||||
|
|
Loading…
Reference in a new issue