Fix reverse proxy to cockpit dashboard
This commit is contained in:
parent
302d75066f
commit
8ca0cf3727
@ -1,20 +1,15 @@
|
|||||||
http:
|
http:
|
||||||
routers:
|
routers:
|
||||||
cockpit:
|
cockpit:
|
||||||
rule: "Host(`{{ vault_domain }}`) && (PathPrefix(`/cockpit/`) || Path(`/cockpit`))"
|
rule: "Host(`{{ vault_domain }}`) && (PathPrefix(`/admin/`) || Path(`/admin`))"
|
||||||
entryPoints: https
|
entryPoints: https
|
||||||
middlewares:
|
middlewares:
|
||||||
- force-trailing-slash
|
|
||||||
- drop-xforwarded-proto
|
- drop-xforwarded-proto
|
||||||
service: cockpit
|
service: cockpit
|
||||||
tls:
|
tls:
|
||||||
certresolver: wildcard
|
certresolver: wildcard
|
||||||
|
|
||||||
middlewares:
|
middlewares:
|
||||||
cockpit-stripprefix:
|
|
||||||
stripPrefix:
|
|
||||||
prefixes:
|
|
||||||
- "/cockpit"
|
|
||||||
drop-xforwarded-proto:
|
drop-xforwarded-proto:
|
||||||
headers:
|
headers:
|
||||||
customrequestheaders:
|
customrequestheaders:
|
||||||
@ -25,8 +20,8 @@ http:
|
|||||||
loadBalancer:
|
loadBalancer:
|
||||||
serversTransport: nocertverify
|
serversTransport: nocertverify
|
||||||
servers:
|
servers:
|
||||||
- url: "https://{{ vault_domain }}:9090"
|
- url: "https://{{ hostvars[inventory_hostname]['ansible_default_ipv4']['address'] }}:9090/admin/"
|
||||||
|
|
||||||
serversTransports:
|
serversTransports:
|
||||||
nocertverify:
|
nocertverify:
|
||||||
insecureSkipVerify: true
|
insecureSkipVerify: true
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
[WebService]
|
[WebService]
|
||||||
Origins = http://{{ inventory_hostname }} ws://{{ inventory_hostname }} https://{{ inventory_hostname }} wss://{{ inventory_hostname }} http://{{ hostvars[inventory_hostname]['ansible_default_ipv4']['address'] }}:9090 ws://{{ hostvars[inventory_hostname]['ansible_default_ipv4']['address'] }}:9090 https://{{ hostvars[inventory_hostname]['ansible_default_ipv4']['address'] }}:9090 wss://{{ hostvars[inventory_hostname]['ansible_default_ipv4']['address'] }}:9090
|
Origins = https://{{ inventory_hostname }} wss://{{ inventory_hostname }}
|
||||||
ProtocolHeader = X-Forwarded-Proto
|
ProtocolHeader = X-Forwarded-Proto
|
||||||
|
UrlRoot=/admin
|
||||||
|
Loading…
Reference in New Issue
Block a user