Some apps need to set this header.
This commit is contained in:
parent
bfd7cb3b5f
commit
5ac9136973
3 changed files with 8 additions and 3 deletions
|
@ -61,12 +61,12 @@
|
||||||
website: taskotron.stg.fedoraproject.org
|
website: taskotron.stg.fedoraproject.org
|
||||||
destname: taskotron
|
destname: taskotron
|
||||||
# Talk directly to the app server, not haproxy
|
# Talk directly to the app server, not haproxy
|
||||||
proxyurl: http://taskotron-stg01.qa.fedoraproject.org/
|
proxyurl: http://taskotron-stg01.qa.fedoraproject.org
|
||||||
|
|
||||||
- role: httpd/reverseproxy
|
- role: httpd/reverseproxy
|
||||||
website: meetbot.fedoraproject.org
|
website: meetbot.fedoraproject.org
|
||||||
destname: meetbot
|
destname: meetbot
|
||||||
localpath: /meetbot
|
remotepath: /meetbot/
|
||||||
# Talk directly to the app server, not haproxy
|
# Talk directly to the app server, not haproxy
|
||||||
proxyurl: http://value01
|
proxyurl: http://value01
|
||||||
|
|
||||||
|
@ -82,6 +82,7 @@
|
||||||
destname: nuancier
|
destname: nuancier
|
||||||
localpath: /nuancier
|
localpath: /nuancier
|
||||||
remotepath: /nuancier
|
remotepath: /nuancier
|
||||||
|
header_scheme: true
|
||||||
proxyurl: http://localhost:10035
|
proxyurl: http://localhost:10035
|
||||||
|
|
||||||
- role: httpd/reverseproxy
|
- role: httpd/reverseproxy
|
||||||
|
@ -89,6 +90,7 @@
|
||||||
destname: github2fedmsg
|
destname: github2fedmsg
|
||||||
localpath: /github2fedmsg
|
localpath: /github2fedmsg
|
||||||
remotepath: /github2fedmsg
|
remotepath: /github2fedmsg
|
||||||
|
header_scheme: true
|
||||||
proxyurl: http://localhost:10037
|
proxyurl: http://localhost:10037
|
||||||
|
|
||||||
- role: httpd/reverseproxy
|
- role: httpd/reverseproxy
|
||||||
|
|
|
@ -2,6 +2,8 @@
|
||||||
RewriteEngine On
|
RewriteEngine On
|
||||||
RewriteRule ^{{remotepath}}$ %{REQUEST_URI}/ [R=301]
|
RewriteRule ^{{remotepath}}$ %{REQUEST_URI}/ [R=301]
|
||||||
|
|
||||||
|
{% endif %}
|
||||||
|
{% if header_scheme %}RequestHeader set X-Forwarded-Scheme https early
|
||||||
{% endif %}
|
{% endif %}
|
||||||
ProxyPass {{ localpath }} {{ proxyurl }}{{remotepath}}
|
ProxyPass {{ localpath }} {{ proxyurl }}{{remotepath}}
|
||||||
ProxyPassReverse {{ localpath }} {{ proxyurl }}{{remotepath}}
|
ProxyPassReverse {{ localpath }} {{ proxyurl }}{{remotepath}}
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
remotepath: /
|
remotepath: /
|
||||||
localpath: /
|
localpath: /
|
||||||
rewrite: false
|
|
||||||
destname: reversepassproxy
|
destname: reversepassproxy
|
||||||
|
rewrite: false
|
||||||
|
header_scheme: false
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue