summaryrefslogtreecommitdiff
path: root/templates/vhosts/proxy/proxy.erb
diff options
context:
space:
mode:
Diffstat (limited to 'templates/vhosts/proxy/proxy.erb')
-rw-r--r--templates/vhosts/proxy/proxy.erb4
1 files changed, 4 insertions, 0 deletions
diff --git a/templates/vhosts/proxy/proxy.erb b/templates/vhosts/proxy/proxy.erb
index 3251b7d..b007523 100644
--- a/templates/vhosts/proxy/proxy.erb
+++ b/templates/vhosts/proxy/proxy.erb
@@ -71,6 +71,10 @@
CustomLog <%= logdir %>/access_log combined
<%- end -%>
+ <%- if ssl_mode.to_s == 'force' then -%>
+ Header add Strict-Transport-Security "max-age=15768000"
+
+ <%- end -%>
<Proxy *>
Order deny,allow
Allow from all