Deploy split servers to prod
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
This commit is contained in:
parent
bc95beb269
commit
cabbfe3015
2 changed files with 14 additions and 11 deletions
|
@ -658,18 +658,30 @@
|
||||||
|
|
||||||
- role: httpd/website
|
- role: httpd/website
|
||||||
name: id.fedoraproject.org
|
name: id.fedoraproject.org
|
||||||
|
sslonly: true
|
||||||
|
cert_name: "{{wildcard_cert_name}}"
|
||||||
|
SSLCertificateChainFile: wildcard-2017.id.fedoraproject.org.intermediate.cert
|
||||||
|
tags:
|
||||||
|
- id.fedoraproject.org
|
||||||
|
|
||||||
|
- role: httpd/website
|
||||||
|
name: username.id.fedoraproject.org
|
||||||
server_aliases:
|
server_aliases:
|
||||||
- "*.id.fedoraproject.org"
|
- "*.id.fedoraproject.org"
|
||||||
# Must not be sslonly, because example.id.fedoraproject.org must be reachable
|
# Must not be sslonly, because example.id.fedoraproject.org must be reachable
|
||||||
# via plain http for openid identity support
|
# via plain http for openid identity support
|
||||||
cert_name: wildcard-2017.id.fedoraproject.org
|
cert_name: wildcard-2017.id.fedoraproject.org
|
||||||
SSLCertificateChainFile: wildcard-2017.id.fedoraproject.org.intermediate.cert
|
SSLCertificateChainFile: wildcard-2017.id.fedoraproject.org.intermediate.cert
|
||||||
|
tags:
|
||||||
|
- id.fedoraproject.org
|
||||||
|
|
||||||
- role: httpd/website
|
- role: httpd/website
|
||||||
name: id.stg.fedoraproject.org
|
name: id.stg.fedoraproject.org
|
||||||
cert_name: "{{wildcard_cert_name}}"
|
cert_name: "{{wildcard_cert_name}}"
|
||||||
SSLCertificateChainFile: wildcard-2017.stg.fedoraproject.org.intermediate.cert
|
SSLCertificateChainFile: wildcard-2017.stg.fedoraproject.org.intermediate.cert
|
||||||
sslonly: true
|
sslonly: true
|
||||||
|
tags:
|
||||||
|
- id.fedoraproject.org
|
||||||
when: env == "staging"
|
when: env == "staging"
|
||||||
|
|
||||||
- role: httpd/website
|
- role: httpd/website
|
||||||
|
@ -680,6 +692,8 @@
|
||||||
# via plain http for openid identity support
|
# via plain http for openid identity support
|
||||||
cert_name: "{{wildcard_cert_name}}"
|
cert_name: "{{wildcard_cert_name}}"
|
||||||
SSLCertificateChainFile: wildcard-2017.stg.fedoraproject.org.intermediate.cert
|
SSLCertificateChainFile: wildcard-2017.stg.fedoraproject.org.intermediate.cert
|
||||||
|
tags:
|
||||||
|
- id.fedoraproject.org
|
||||||
when: env == "staging"
|
when: env == "staging"
|
||||||
|
|
||||||
- role: httpd/website
|
- role: httpd/website
|
||||||
|
|
|
@ -9,17 +9,6 @@ Header always add Strict-Transport-Security "max-age=15768000; preload"
|
||||||
|
|
||||||
RewriteEngine on
|
RewriteEngine on
|
||||||
|
|
||||||
{% if env == "production" %}
|
|
||||||
RewriteMap lowercase int:tolower
|
|
||||||
RewriteCond ${lowercase:%{SERVER_NAME}} ^[a-z0-9-]+\.id\.fedoraproject\.org$
|
|
||||||
RewriteRule ^(.+) ${lowercase:%{SERVER_NAME}}$1 [C]
|
|
||||||
RewriteRule ^([a-z0-9-]+)\.id\.fedoraproject\.org/.* {{proxyurl}}/openid/id/$1/ [P]
|
|
||||||
|
|
||||||
RewriteCond %{HTTPS} off
|
|
||||||
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L]
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
|
|
||||||
RewriteRule ^(.+) - [PT]
|
RewriteRule ^(.+) - [PT]
|
||||||
|
|
||||||
<Location /login>
|
<Location /login>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue