mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-06-14 22:36:09 +08:00
Set HSTS for sslonly websites in roles/httpd/reverseproxy
This commit is contained in:
@@ -3,8 +3,6 @@ Alias /favicon.ico /srv/web/fedoraproject.org/static/images/favicon.ico
|
||||
|
||||
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css application/x-javascript
|
||||
|
||||
Header always add Strict-Transport-Security "max-age=15768000; includeSubDomains; preload"
|
||||
|
||||
FileETag MTime Size
|
||||
|
||||
ExpiresActive On
|
||||
|
||||
@@ -4,5 +4,3 @@ Header unset Set-Cookie
|
||||
|
||||
ProxyPass {{localpath}} {{proxyurl}}{{remotepath}}
|
||||
ProxyPassReverse {{localpath}} {{proxyurl}}{{remotepath}}
|
||||
|
||||
Header always add Strict-Transport-Security "max-age=15768000; includeSubDomains; preload"
|
||||
|
||||
@@ -8,5 +8,3 @@ Header unset Set-Cookie
|
||||
|
||||
ProxyPass {{localpath}} {{proxyurl}}{{remotepath}}
|
||||
ProxyPassReverse {{localpath}} {{proxyurl}}{{remotepath}}
|
||||
|
||||
Header always add Strict-Transport-Security "max-age=15768000; includeSubDomains; preload"
|
||||
|
||||
@@ -10,5 +10,3 @@ ProxyPassReverse /accounts/user/dogencert http://fas1/
|
||||
|
||||
ProxyPass {{localpath}} {{proxyurl}}{{remotepath}}
|
||||
ProxyPassReverse {{localpath}} {{proxyurl}}{{remotepath}}
|
||||
|
||||
Header always add Strict-Transport-Security "max-age=15768000; includeSubDomains; preload"
|
||||
|
||||
@@ -26,8 +26,6 @@ RewriteRule ^([a-z0-9-]+)\.id\.fedoraproject\.org/.* {{proxyurl}}/openid/id/$1/
|
||||
RewriteCond %{HTTPS} off
|
||||
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L]
|
||||
|
||||
Header always add Strict-Transport-Security "max-age=15768000; preload"
|
||||
|
||||
|
||||
RewriteRule ^(.+) - [PT]
|
||||
|
||||
|
||||
@@ -37,5 +37,3 @@ Header unset Set-Cookie
|
||||
|
||||
ProxyPass {{localpath}} {{proxyurl}}{{remotepath}}
|
||||
ProxyPassReverse {{localpath}} {{proxyurl}}{{remotepath}}
|
||||
|
||||
Header always add Strict-Transport-Security "max-age=15768000; includeSubDomains; preload"
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
RewriteEngine On
|
||||
RewriteCond %{HTTPS} off
|
||||
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [NE]
|
||||
Header always add Strict-Transport-Security "max-age=15768000; includeSubDomains; preload"
|
||||
{% else %}
|
||||
Include "conf.d/{{ name }}/*.conf"
|
||||
{% endif %}
|
||||
|
||||
Reference in New Issue
Block a user