diff options
author | PiBa-NL <pba_2k3@yahoo.com> | 2014-02-17 23:10:50 +0100 |
---|---|---|
committer | PiBa-NL <pba_2k3@yahoo.com> | 2014-02-17 23:10:50 +0100 |
commit | fdc63dbf757a94105ff1bf9d295fcc4047f34ea4 (patch) | |
tree | f42fde0d6dcbb6c95957c28e5b11db54b6cd6f2c /config/haproxy-devel/haproxy.inc | |
parent | 6615c6528165b39b0ed692cb3f52d28a7ad94c48 (diff) | |
download | pfsense-packages-fdc63dbf757a94105ff1bf9d295fcc4047f34ea4.tar.gz pfsense-packages-fdc63dbf757a94105ff1bf9d295fcc4047f34ea4.tar.bz2 pfsense-packages-fdc63dbf757a94105ff1bf9d295fcc4047f34ea4.zip |
haproxy-devel, option for "HTTP Strict Transport Security" HTST
Diffstat (limited to 'config/haproxy-devel/haproxy.inc')
-rw-r--r-- | config/haproxy-devel/haproxy.inc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/config/haproxy-devel/haproxy.inc b/config/haproxy-devel/haproxy.inc index 7f65e814..4713a2d1 100644 --- a/config/haproxy-devel/haproxy.inc +++ b/config/haproxy-devel/haproxy.inc @@ -560,6 +560,10 @@ function write_backend($fd, $name, $pool, $frontend) { if ($optioncheck) fwrite ($fd, "\toption\t\t\t{$optioncheck}\n"); + if ($pool["strict_transport_security"] && is_numeric($pool["strict_transport_security"])){ + fwrite ($fd, "\trspadd Strict-Transport-Security:\ max-age={$pool["strict_transport_security"]};\n"); + } + if ($pool['advanced_backend']) { $adv_be = explode("\n", base64_decode($pool['advanced_backend'])); foreach($adv_be as $adv_line) { |