Fix websockets for prod openshift

Signed-off-by: Patrick Uiterwijk <patrick@puiterwijk.org>
This commit is contained in:
Patrick Uiterwijk 2018-09-12 01:55:40 +02:00
parent 44f6ac6277
commit 12186da25f
2 changed files with 6 additions and 2 deletions

View file

@ -19,7 +19,6 @@ ProxyPreserveHost On
{% if balancer_name is defined %}
SSLProxyEngine On
{% if env == "staging" %}
<Proxy "balancer://{{balancer_name}}-websocket">
{% for member in balancer_members %}
@ -32,7 +31,6 @@ RewriteCond %{HTTP:Upgrade} ^WebSocket$ [NC]
RewriteCond %{HTTP:Connection} ^Upgrade$ [NC]
RewriteRule .* "balancer://{{ balancer_name }}-websocket%{REQUEST_URI}" [P]
{% endif %}
<Proxy "balancer://{{balancer_name}}">
{% for member in balancer_members %}
BalancerMember "https://{{ member }}"