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
|
- role: httpd/reverseproxy
|
||||||
website: koji.fedoraproject.org
|
website: koji.fedoraproject.org
|
||||||
destname: koji
|
destname: koji
|
||||||
proxyurl: http://localhost:10056
|
|
||||||
keephost: true
|
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
|
- role: httpd/reverseproxy
|
||||||
website: kojipkgs.fedoraproject.org
|
website: kojipkgs.fedoraproject.org
|
||||||
|
|
|
@ -5,8 +5,7 @@ ProxyTimeout 10800
|
||||||
TimeOut 10800
|
TimeOut 10800
|
||||||
|
|
||||||
{% if 'phx2' in inventory_hostname %}
|
{% if 'phx2' in inventory_hostname %}
|
||||||
ProxyPass {{ localpath }} {{ proxyurl }}{{remotepath}}
|
{% include "reversepassproxy.conf" %}
|
||||||
ProxyPassReverse {{ localpath }} {{ proxyurl }}{{remotepath}}
|
|
||||||
{% else %}
|
{% else %}
|
||||||
Redirect 421 /
|
Redirect 421 /
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue