mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-04-13 11:30:00 +08:00
Move koji to mod_proxy_balancer
Signed-off-by: Patrick Uiterwijk <patrick@puiterwijk.org>
This commit is contained in:
@@ -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 %}
|
||||
|
||||
Reference in New Issue
Block a user