X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/9bd884562817e0d9320de88485ae457c9535da76..2fa4b09c609ade8b4c3c2782c22608b8db464784:/cookbooks/donate/templates/default/apache.erb
diff --git a/cookbooks/donate/templates/default/apache.erb b/cookbooks/donate/templates/default/apache.erb
index df3a98bd3..20f00e10c 100644
--- a/cookbooks/donate/templates/default/apache.erb
+++ b/cookbooks/donate/templates/default/apache.erb
@@ -16,13 +16,16 @@
<% if port == 80 -%>
# Redirect to secure site
- Redirect permanent / https://donate.openstreetmap.org
+ Redirect permanent / https://donate.openstreetmap.org/
<% end -%>
<% if port == 443 -%>
#
# Enable SSL
#
SSLEngine on
+ SSLCertificateFile /etc/ssl/certs/openstreetmap.pem
+ SSLCertificateKeyFile /etc/ssl/private/openstreetmap.key
+ SSLCertificateChainFile /etc/ssl/certs/rapidssl.pem
# HSTS (mod_headers is required)
Header always set Strict-Transport-Security "max-age=300"
@@ -71,8 +74,15 @@
# Enable deflate compression on .csv files if possible
+ DeflateCompressionLevel 9
AddOutputFilterByType DEFLATE text/csv
+
+
+ ExpiresDefault "access plus 15 minutes"
+ ExpiresByType text/html "access plus 5 minutes"
+ ExpiresByType text/csv "access plus 1 minute"
+
<% end -%>