OpenQA is non-HTTPS for backend, sadly
Signed-off-by: Patrick Uiterwijk <patrick@puiterwijk.org>
This commit is contained in:
parent
24c2bc0ab8
commit
158847f9b5
3 changed files with 12 additions and 1 deletions
|
@ -321,6 +321,7 @@
|
|||
destname: openqa
|
||||
balancer_name: openqa
|
||||
balancer_members: ['openqa.qa.fedoraproject.org:80']
|
||||
http_not_https_yes_this_is_insecure_and_i_feel_bad: true
|
||||
when: env == "production"
|
||||
|
||||
- role: httpd/reverseproxy
|
||||
|
@ -328,6 +329,7 @@
|
|||
destname: openqa
|
||||
balancer_name: openqa-stg
|
||||
balancer_members: ['openqa-stg01.qa.fedoraproject.org:80']
|
||||
http_not_https_yes_this_is_insecure_and_i_feel_bad: true
|
||||
when: env == "staging"
|
||||
|
||||
- role: httpd/reverseproxy
|
||||
|
|
|
@ -28,7 +28,11 @@ SSLProxyEngine On
|
|||
|
||||
<Proxy "balancer://{{balancer_name}}-websocket">
|
||||
{% for member in balancer_members %}
|
||||
{% if http_not_https_yes_this_is_insecure_and_i_feel_bad %}
|
||||
BalancerMember "ws://{{ member }}"
|
||||
{% else %}
|
||||
BalancerMember "wss://{{ member }}"
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</Proxy>
|
||||
|
||||
|
@ -39,7 +43,11 @@ RewriteRule .* "balancer://{{ balancer_name }}-websocket%{REQUEST_URI}" [P]
|
|||
|
||||
<Proxy "balancer://{{balancer_name}}">
|
||||
{% for member in balancer_members %}
|
||||
BalancerMember "https://{{ member }}"
|
||||
{% if http_not_https_yes_this_is_insecure_and_i_feel_bad %}
|
||||
BalancerMember "http://{{ member }}"
|
||||
{% else %}
|
||||
BalancerMember "http://{{ member }}"
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</Proxy>
|
||||
ProxyPass {{ localpath }} "balancer://{{balancer_name}}{{remotepath}}"
|
||||
|
|
|
@ -6,3 +6,4 @@ header_expect: false
|
|||
header_scheme: false
|
||||
keephost: false
|
||||
targettype: plain
|
||||
http_not_https_yes_this_is_insecure_and_i_feel_bad: false
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue