diff --git a/playbooks/include/proxies-reverseproxy.yml b/playbooks/include/proxies-reverseproxy.yml index 8568db5bad..eb15663514 100644 --- a/playbooks/include/proxies-reverseproxy.yml +++ b/playbooks/include/proxies-reverseproxy.yml @@ -260,6 +260,14 @@ remotepath: /koschei proxyurl: "{{ varnish_url }}" + - role: httpd/reverseproxy + website: apps.fedoraproject.org + destname: mdapi + remotepath: / + localpath: /mdapi + proxyurl: http://localhost:10043 + when: env == "staging" + - role: httpd/reverseproxy website: apps.fedoraproject.org destname: autocloud diff --git a/roles/haproxy/templates/haproxy.cfg.stg b/roles/haproxy/templates/haproxy.cfg.stg index acfa189c0c..8dd1ba8e0d 100644 --- a/roles/haproxy/templates/haproxy.cfg.stg +++ b/roles/haproxy/templates/haproxy.cfg.stg @@ -191,6 +191,11 @@ listen statscache 0.0.0.0:10042 server statscache-web02 statscache-web02:80 check inter 10s rise 1 fall 2 option httpchk GET /statscache/ +listen mdapi 0.0.0.0:10043 + balance hdr(appserver) + server mdapi01 mdapi01:80 check inter 10s rise 1 fall 2 + option httpchk GET / + # Apache doesn't handle the initial connection here like the other proxy # entries. This proxy also doesn't use the http mode like the others. # stunnel should be sitting on port 9939 (public) and redirecting