Move koji to mod_proxy_balancer
Signed-off-by: Patrick Uiterwijk <patrick@puiterwijk.org>
This commit is contained in:
parent
27667b474c
commit
180bd2ee6e
2 changed files with 6 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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 %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue