]> git.openstreetmap.org Git - chef.git/blob - cookbooks/apache/templates/default/ssl.erb
Add Apache redirects for wiki
[chef.git] / cookbooks / apache / templates / default / ssl.erb
1 # DO NOT EDIT - This file is being maintained by Chef
2
3 SSLProtocol All -SSLv2 -SSLv3
4
5 SSLHonorCipherOrder On
6 SSLCipherSuite <%= node[:ssl][:openssl_ciphers] %>
7 <% if node[:lsb][:release].to_f < 16.04 -%>
8
9 SSLCertificateChainFile /etc/ssl/certs/letsencrypt.pem
10 <% end -%>
11
12 SSLUseStapling On
13 SSLStaplingResponderTimeout 5
14 SSLStaplingErrorCacheTimeout 60
15 SSLStaplingReturnResponderErrors off
16 SSLStaplingFakeTryLater off
17 SSLStaplingCache shmcb:${APACHE_RUN_DIR}/ssl_ocspcache(512000)
18
19 Header always set Strict-Transport-Security "<%= node[:ssl][:strict_transport_security] %>" "expr=%{HTTPS} == 'on'"
20 Header always set Expect-CT "max-age=0, report-uri=\"https://openstreetmap.report-uri.com/r/d/ct/reportOnly\"" "expr=%{HTTPS} == 'on'