Add proxy config for stg only

Signed-off-by: Ricky Elrod <codeblock@fedoraproject.org>
This commit is contained in:
Rick Elrod 2016-09-06 04:54:06 +00:00
parent 6fddd1c6ef
commit 1c43c268bc
3 changed files with 21 additions and 0 deletions

View file

@ -533,3 +533,9 @@
localpath: /fas3
proxyurl: http://localhost:10052
when: env == "staging"
- role: httpd/reverseproxy
website: modernpaste.fedoraproject.org
destname: modernpaste
proxyurl: http://localhost:10055
when: env == "staging"

View file

@ -457,6 +457,13 @@
- www.fpaste.org
cert_name: "{{wildcard_cert_name}}"
- role: httpd/website
name: modernpaste.fedoraproject.org
server_aliases:
- modernpaste.stg.fedoraproject.org
cert_name: "{{wildcard_cert_name}}"
when: env == "staging"
- role: httpd/website
name: apps.fedoraproject.org
server_aliases: [apps.stg.fedoraproject.org]

View file

@ -341,6 +341,14 @@ listen docker-candidate-registry 0.0.0.0:10054
balance hdr(appserver)
server docker-candidate-registry01 docker-candidate-registry01:5000 check inter 10s rise 1 fall 2
{% if env == "staging" %}
listen modernpaste 0.0.0.0:10055
balance hdr(appserver)
server modernpaste01 modernpaste01:80 check inter 10s rise 1 fall 2
option httpchk GET /
{% endif %}
# 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.