diff options
-rw-r--r-- | templates/vhosts/partials/ssl.erb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/templates/vhosts/partials/ssl.erb b/templates/vhosts/partials/ssl.erb index 24e28f5..c9f3933 100644 --- a/templates/vhosts/partials/ssl.erb +++ b/templates/vhosts/partials/ssl.erb @@ -3,3 +3,6 @@ <% if configuration['ssl_certificate_chain_file'] || scope.lookupvar('apache::default_ssl_certificate_chain_file') != 'absent' -%> SSLCertificateChainFile <%= configuration['ssl_certificate_chain_file'] || scope.lookupvar('apache::default_ssl_certificate_chain_file') %> <% end -%> +<% if configuration['hsts'] -%> + Header add Strict-Transport-Security "max-age=<%= (configuration['hsts']['age'] || 15768000) rescue 15768000 %>" +<% end -%> |