Only use IPA01 for API access since sessions are not synchronized
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
This commit is contained in:
parent
658cad48e2
commit
795c659f7a
3 changed files with 8 additions and 4 deletions
|
@ -179,7 +179,7 @@
|
|||
destname: 00-ipa
|
||||
remotepath: /ipa
|
||||
localpath: /ipa
|
||||
proxyurl: http://localhost:10053
|
||||
proxyurl: http://localhost:10061
|
||||
when: env == "staging"
|
||||
|
||||
- role: httpd/reverseproxy
|
||||
|
|
|
@ -395,6 +395,13 @@ listen armkoji 0.0.0.0:10060
|
|||
server arm-koji01.qa.fedoraproject.org arm-koji01.qa.fedoraproject.org:80 check inter 10s rise 1 fall 2
|
||||
option httpchk GET /
|
||||
|
||||
# This is an endpoint using only ipa01. This is used for API access, since sessions
|
||||
# are not synchronized.
|
||||
listen ipa01 0.0.0.0:10061
|
||||
balance hdr(appserver)
|
||||
server ipa01 ipa01:443 check inter 10s rise 1 fall 2 ssl verify required ca-file /etc/haproxy/ipa.pem
|
||||
option httpchk GET /ipa/ui/
|
||||
|
||||
{% 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.
|
||||
|
|
|
@ -1,7 +1,4 @@
|
|||
ProxyPassReverseCookieDomain ipa01{{env_suffix}}.phx2.fedoraproject.org id{{env_suffix}}.fedoraproject.org
|
||||
{% if env == "production" %}
|
||||
ProxyPassReverseCookieDomain ipa02.phx2.fedoraproject.org id.fedoraproject.org
|
||||
{% endif %}
|
||||
|
||||
ProxyPass {{ localpath }} {{ proxyurl }}{{remotepath}}
|
||||
ProxyPassReverse {{ localpath }} {{ proxyurl }}{{remotepath}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue