proxies: Adding remotepath to websocket balancers
The current template assumes that websockets are at the base of a URL but that is not true for our buildmaster. This patch adds remotepath to the end of the websocket url if remotepath is defined.
This commit is contained in:
parent
7f6b3a59dc
commit
16c2787a56
1 changed files with 8 additions and 0 deletions
|
@ -29,10 +29,18 @@ SSLProxyEngine On
|
||||||
<Proxy "balancer://{{balancer_name}}-websocket">
|
<Proxy "balancer://{{balancer_name}}-websocket">
|
||||||
{% for member in balancer_members %}
|
{% for member in balancer_members %}
|
||||||
{% if http_not_https_yes_this_is_insecure_and_i_feel_bad %}
|
{% if http_not_https_yes_this_is_insecure_and_i_feel_bad %}
|
||||||
|
{% if remotepath is defined %}
|
||||||
|
BalancerMember "ws://{{ member }}{{ remotepath }}
|
||||||
|
{% else %}
|
||||||
BalancerMember "ws://{{ member }}"
|
BalancerMember "ws://{{ member }}"
|
||||||
|
{% endif %}
|
||||||
|
{% else %}
|
||||||
|
{% if remotepath is defined %}
|
||||||
|
BalancerMember "wss://{{ member }}{{ remotepath }}
|
||||||
{% else %}
|
{% else %}
|
||||||
BalancerMember "wss://{{ member }}"
|
BalancerMember "wss://{{ member }}"
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</Proxy>
|
</Proxy>
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue