diff options
author | Literallie | 2017-10-13 01:09:04 +0200 |
---|---|---|
committer | Literallie | 2017-10-13 01:42:05 +0200 |
commit | 56411ca0e10a90d8206508171e3871146bce5351 (patch) | |
tree | cfd1983803fe35f95dc47067b27dcd745ad42428 /config.json.example | |
parent | 53c2d0b5ca5901c1d1cad819e2049b16fba18ea8 (diff) |
Make HSTS behaviour configurable; Fixes #584
Diffstat (limited to '')
-rw-r--r-- | config.json.example | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/config.json.example b/config.json.example index 87c04ed0..e2d774c7 100644 --- a/config.json.example +++ b/config.json.example @@ -6,6 +6,9 @@ } }, "development": { + "hsts": { + "enable": false + }, "db": { "dialect": "sqlite", "storage": "./db.hackmd.sqlite" @@ -13,6 +16,12 @@ }, "production": { "domain": "localhost", + "hsts": { + "enable": "true", + "maxAgeSeconds": "31536000", + "includeSubdomains": "true", + "preload": "true" + }, "db": { "username": "", "password": "", |