iad2: simplify proxy logic for multiple datacenters and make it one that works
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
parent
5a0e6ebcbf
commit
51a68ea0ae
3 changed files with 3 additions and 3 deletions
|
@ -42,7 +42,7 @@ ProxyPreserveHost On
|
|||
Require valid-user
|
||||
</Location>
|
||||
|
||||
{% if 'phx2' in inventory_hostname or if 'iad2' in inventory_hostname %}
|
||||
{% if datacenter == 'iad2' or datacenter == 'phx2' %}
|
||||
ProxyPass {{ localpath }} {{ proxyurl }}{{remotepath}}
|
||||
ProxyPassReverse {{ localpath }} {{ proxyurl }}{{remotepath}}
|
||||
{% else %}
|
||||
|
|
|
@ -31,7 +31,7 @@ ProxyPreserveHost On
|
|||
{% endif %}
|
||||
|
||||
|
||||
{% if 'phx2' in inventory_hostname or if 'iad2' in inventory_hostname %}
|
||||
{% if datacenter == 'iad2' or datacenter == 'phx2' %}
|
||||
|
||||
{% if balancer_name is defined %}
|
||||
<Proxy "balancer://{{balancer_name}}">
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{% if 'phx2' in inventory_hostname or if 'iad2' in inventory_hostname %}
|
||||
{% if datacenter == 'iad2' or datacenter == 'phx2' %}
|
||||
ProxyPass {{ localpath }} {{ proxyurl }}{{remotepath}}
|
||||
ProxyPassReverse {{ localpath }} {{ proxyurl }}{{remotepath}}
|
||||
{% else %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue