diff options
author | Sheogorath | 2017-10-14 18:02:41 +0200 |
---|---|---|
committer | GitHub | 2017-10-14 18:02:41 +0200 |
commit | 5ce8f40eac7fccfcfca175cf79ccfa86a84bc113 (patch) | |
tree | 8cb0f7934d918528baf6e0c138bffe54d8f8cad0 /config.json.example | |
parent | ec8936a9f17ac90edfffa190ec7c91a99871ce27 (diff) | |
parent | 6bdc90d6ffd60cf8fe0509eb9fb3b2d47f185c31 (diff) |
Merge pull request #585 from xxyy/feature/hsts-cfg
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": "", |