]> git.openstreetmap.org Git - chef.git/blob - cookbooks/apache/templates/default/ssl.erb
Merge remote-tracking branch 'github/pull/422'
[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
8 SSLUseStapling On
9 SSLStaplingResponderTimeout 5
10 SSLStaplingErrorCacheTimeout 60
11 SSLStaplingReturnResponderErrors off
12 SSLStaplingFakeTryLater off
13 SSLStaplingCache shmcb:${APACHE_RUN_DIR}/ssl_ocspcache(512000)
14
15 Header always set Strict-Transport-Security "<%= node[:ssl][:strict_transport_security] %>" "expr=%{HTTPS} == 'on'"
16 <% if node[:ssl][:ct_report_uri] -%>
17 Header always set Expect-CT "max-age=0, report-uri=\"<%= node[:ssl][:ct_report_uri] %>\"" "expr=%{HTTPS} == 'on'"
18 <% else -%>
19 Header always set Expect-CT "max-age=0" "expr=%{HTTPS} == 'on'"
20 <% end -%>