summaryrefslogtreecommitdiff
path: root/lib/config
diff options
context:
space:
mode:
authorLiterallie2017-10-13 01:09:04 +0200
committerLiterallie2017-10-13 01:42:05 +0200
commit56411ca0e10a90d8206508171e3871146bce5351 (patch)
treecfd1983803fe35f95dc47067b27dcd745ad42428 /lib/config
parent53c2d0b5ca5901c1d1cad819e2049b16fba18ea8 (diff)
Make HSTS behaviour configurable; Fixes #584
Diffstat (limited to 'lib/config')
-rw-r--r--lib/config/default.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/config/default.js b/lib/config/default.js
index a14a4294..f4c45e3d 100644
--- a/lib/config/default.js
+++ b/lib/config/default.js
@@ -7,6 +7,12 @@ module.exports = {
urladdport: false,
alloworigin: ['localhost'],
usessl: false,
+ hsts: {
+ enable: true,
+ maxAgeSeconds: 31536000,
+ includeSubdomains: true,
+ preload: true
+ },
protocolusessl: false,
usecdn: true,
allowanonymous: true,