diff --git a/playbooks/include/proxies-reverseproxy.yml b/playbooks/include/proxies-reverseproxy.yml index 457c2e77a3..f1646f6920 100644 --- a/playbooks/include/proxies-reverseproxy.yml +++ b/playbooks/include/proxies-reverseproxy.yml @@ -501,7 +501,7 @@ - role: httpd/reverseproxy website: src.fedoraproject.org destname: git - proxyurl: http://pkgs02.phx2.fedoraproject.org + proxyurl: http://localhost:10057 when: env == "production" - role: httpd/reverseproxy diff --git a/roles/haproxy/templates/haproxy.cfg b/roles/haproxy/templates/haproxy.cfg index ae8254cea9..f9f0979deb 100644 --- a/roles/haproxy/templates/haproxy.cfg +++ b/roles/haproxy/templates/haproxy.cfg @@ -367,8 +367,8 @@ listen koji 0.0.0.0:10056 option httpchk GET / {% endif %} -{% if env == "staging" %} - +{% if inventory_hostname_short == 'proxy01' or inventory_hostname_short == 'proxy10' %} +# Only enable this on proxy01 or proxy10 listen src 0.0.0.0:10057 balance hdr(appserver) server pkgs01 pkgs01:80 check inter 10s rise 1 fall 2