From 9a28ab58eb80a497fb6bd9afcb6b149ac9c13277 Mon Sep 17 00:00:00 2001 From: Ralph Bean Date: Fri, 4 Mar 2016 19:37:25 +0000 Subject: [PATCH] Proxy config for zanata2fedmsg. --- playbooks/include/proxies-reverseproxy.yml | 6 ++++++ roles/haproxy/templates/haproxy.cfg | 4 ++++ roles/haproxy/templates/haproxy.cfg.stg | 4 ++++ 3 files changed, 14 insertions(+) diff --git a/playbooks/include/proxies-reverseproxy.yml b/playbooks/include/proxies-reverseproxy.yml index 8e4858d455..8979a5a1bf 100644 --- a/playbooks/include/proxies-reverseproxy.yml +++ b/playbooks/include/proxies-reverseproxy.yml @@ -300,6 +300,12 @@ destname: pdc proxyurl: http://localhost:10045 + - role: httpd/reverseproxy + website: apps.fedoraproject.org + destname: zanata2fedmsg + localpath: /zanata2fedmsg + proxyurl: http://localhost:10036 + - role: httpd/reverseproxy website: admin.fedoraproject.org destname: yk-val diff --git a/roles/haproxy/templates/haproxy.cfg b/roles/haproxy/templates/haproxy.cfg index 6e96bb6bff..747895bad5 100644 --- a/roles/haproxy/templates/haproxy.cfg +++ b/roles/haproxy/templates/haproxy.cfg @@ -232,6 +232,10 @@ listen pdc 0.0.0.0:10045 timeout server 3600000 timeout connect 3600000 +listen zanata2fedmsg 0.0.0.0:10046 + balance hdr(appserver) + server zanata2fedmsg01 zanata2fedmsg01:80 check inter 10s rise 1 fall 2 + # 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 diff --git a/roles/haproxy/templates/haproxy.cfg.stg b/roles/haproxy/templates/haproxy.cfg.stg index 9a05cc842b..e09b4ab634 100644 --- a/roles/haproxy/templates/haproxy.cfg.stg +++ b/roles/haproxy/templates/haproxy.cfg.stg @@ -208,6 +208,10 @@ listen pdc 0.0.0.0:10045 timeout server 3600000 timeout connect 3600000 +listen zanata2fedmsg 0.0.0.0:10046 + balance hdr(appserver) + server zanata2fedmsg01 zanata2fedmsg01:80 check inter 10s rise 1 fall 2 + # 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