mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-04-27 12:03:38 +08:00
18 lines
481 B
Plaintext
18 lines
481 B
Plaintext
SSLProxyEngine on
|
|
|
|
{% if rewrite %}
|
|
RewriteEngine On
|
|
RewriteRule ^{{remotepath}}$ %{REQUEST_URI}/ [R=301]
|
|
|
|
{% endif %}
|
|
{% if header_scheme %}
|
|
RequestHeader set X-Forwarded-Scheme https early
|
|
RequestHeader set X-Scheme https early
|
|
RequestHeader set X-Forwarded-Proto https early
|
|
|
|
{% endif %}
|
|
{% for path in ('api', 'api_2', 'api_3') %}
|
|
ProxyPass /{{path}} https://copr.fedorainfracloud.org/{{path}}
|
|
ProxyPassReverse /{{path}} https://copr.fedorainfracloud.org/{{path}}
|
|
{% endfor %}
|