Remove hardcoded IPs

This commit is contained in:
Francesco Antognazza 2023-02-06 10:11:29 +01:00
parent 3e7f5b44b3
commit cf908e7cce
2 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,7 @@
http:
routers:
cockpit:
rule: "Path(`/cockpit`)"
rule: "PathPrefix(`/cockpit`)"
entryPoints: https
service: cockpit
tls:
@ -11,4 +11,4 @@ http:
cockpit:
loadBalancer:
servers:
- url: "http://131.175.120.208:9090"
- url: "http://{{ ansible_host }}:9090"

View File

@ -1,4 +1,4 @@
[WebService]
Origins = http://{{ inventory_hostname }} ws://{{ inventory_hostname }} https://{{ inventory_hostname }} wss://{{ inventory_hostname }} http://131.175.120.208 ws://131.175.120.208 https://131.175.120.208 wss://131.175.120.208
Origins = http://{{ inventory_hostname }} ws://{{ inventory_hostname }} https://{{ inventory_hostname }} wss://{{ inventory_hostname }} http://{{ ansible_host }} ws://{{ ansible_host }} https://{{ ansible_host }} wss://{{ ansible_host }}
ProtocolHeader = X-Forwarded-Proto
AllowUnencrypted=true