Move koji to mod_proxy_balancer

Signed-off-by: Patrick Uiterwijk <patrick@puiterwijk.org>
This commit is contained in:
Patrick Uiterwijk 2019-05-22 08:53:46 +02:00
parent 27667b474c
commit 180bd2ee6e
2 changed files with 6 additions and 3 deletions

View file

@ -650,8 +650,12 @@
- role: httpd/reverseproxy
website: koji.fedoraproject.org
destname: koji
proxyurl: http://localhost:10056
keephost: true
balancer_name: koji
balancer_members:
- "koji01{{ env_prefix }}.phx2.fedoraproject.org"
- "koji02{{ env_prefix }}.phx2.fedoraproject.org"
http_not_https_yes_this_is_insecure_and_i_feel_bad: true
- role: httpd/reverseproxy
website: kojipkgs.fedoraproject.org

View file

@ -5,8 +5,7 @@ ProxyTimeout 10800
TimeOut 10800
{% if 'phx2' in inventory_hostname %}
ProxyPass {{ localpath }} {{ proxyurl }}{{remotepath}}
ProxyPassReverse {{ localpath }} {{ proxyurl }}{{remotepath}}
{% include "reversepassproxy.conf" %}
{% else %}
Redirect 421 /
{% endif %}