Update traefik container configuration
This commit is contained in:
parent
81e6e04429
commit
0c15ec9f9d
@ -102,8 +102,9 @@
|
||||
io.containers.autoupdate: "registry"
|
||||
traefik.enable: "true"
|
||||
traefik.http.middlewares.traefik-auth.basicauth.users: "{{ vault_traefik_basic_auth }}"
|
||||
traefik.http.middlewares.traefik-prefixstrip.stripprefix.prefixes: "/traefik"
|
||||
traefik.http.routers.traefik.entrypoints: "https"
|
||||
traefik.http.routers.traefik.rule: "PathPrefix(`/traefik`)"
|
||||
traefik.http.routers.traefik.rule: "PathPrefix(`/traefik`) || HeadersRegexp(`Referer`, `.*/traefik/.*`)"
|
||||
traefik.http.routers.traefik.middlewares: "traefik-auth@docker"
|
||||
traefik.http.routers.traefik.tls: "true"
|
||||
traefik.http.routers.traefik.tls.certresolver: "wildcard"
|
||||
|
@ -3,12 +3,20 @@ http:
|
||||
cockpit:
|
||||
rule: "PathPrefix(`/cockpit`)"
|
||||
entryPoints: https
|
||||
middlewares:
|
||||
- cockpit-stripprefix
|
||||
service: cockpit
|
||||
tls:
|
||||
certresolver: wildcard
|
||||
|
||||
middlewares:
|
||||
cockpit-stripprefix:
|
||||
stripPrefix:
|
||||
prefixes:
|
||||
- "/cockpit"
|
||||
|
||||
services:
|
||||
cockpit:
|
||||
loadBalancer:
|
||||
servers:
|
||||
- url: "http://{{ ansible_host }}:9090"
|
||||
- url: "http://127.0.0.1:9090"
|
||||
|
Loading…
Reference in New Issue
Block a user