Setup mdapi through the reverse proxies

Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
This commit is contained in:
Patrick Uiterwijk 2015-11-10 10:25:37 +00:00
parent a87b6fe4ba
commit ed64ea0d30
2 changed files with 13 additions and 0 deletions

View file

@ -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

View file

@ -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