From 9ec72a36a422160dbf04882271f07ff5929c3c32 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Tue, 17 Nov 2015 15:45:24 +0100 Subject: [PATCH] Push mdapi in prod --- playbooks/include/proxies-reverseproxy.yml | 7 +++++++ roles/haproxy/templates/haproxy.cfg | 5 +++++ 2 files changed, 12 insertions(+) diff --git a/playbooks/include/proxies-reverseproxy.yml b/playbooks/include/proxies-reverseproxy.yml index f4411662fe..82a21c7bc2 100644 --- a/playbooks/include/proxies-reverseproxy.yml +++ b/playbooks/include/proxies-reverseproxy.yml @@ -268,6 +268,13 @@ proxyurl: http://localhost:10043 when: env == "staging" + - role: httpd/reverseproxy + website: apps.fedoraproject.org + destname: mdapi + remotepath: /mdapi + localpath: /mdapi + proxyurl: http://localhost:10043 + - role: httpd/reverseproxy website: openqa.fedoraproject.org destname: openqa diff --git a/roles/haproxy/templates/haproxy.cfg b/roles/haproxy/templates/haproxy.cfg index f4c692ad9b..1d47dcc26d 100644 --- a/roles/haproxy/templates/haproxy.cfg +++ b/roles/haproxy/templates/haproxy.cfg @@ -212,6 +212,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 /mdapi + # 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