hedgedoc/lib
Sheogorath 0aa3116805
Fix wrong maxAgeSeconds multiplication
It seems like the inital work on the hsts module expected milliseconds.
This has either changed or was never true. Either way, it caused that
the current defaults resulted in theory in a 1000 year HSTS policy.
Luckily helmet was smart enough to not go higher than 1 year.

Anyway, this patch fixes the multiplication of the configured size with
1000 by removing this multiplication.

Also to simplify the reading of the defaults, we split them into their
components, 60 times 60 seconds so we get one hour. 24 of those hours so
we get a day and finally 365 days to get our original wanted default of
one year.

Reference:
d69d65ea74
Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
2018-11-19 22:01:54 +01:00
..
config Fix wrong maxAgeSeconds multiplication 2018-11-19 22:01:54 +01:00
migrations Update error message text checks 2018-11-16 23:53:50 +01:00
models switching to eslint for code checking 2018-11-14 23:15:36 +01:00
ot Fix logging in ot module 2018-11-13 23:30:13 +01:00
web Merge pull request #1058 from ccoenen/bug/oauth2internalerror 2018-11-16 11:45:50 +01:00
workers refactor: Remove require extension filename 2017-05-08 19:29:06 +08:00
csp.js Add data: URL to CSP and upgrade helmet 2018-10-04 03:04:36 +02:00
history.js Further improvement of error handling for LZString 2018-07-27 15:42:58 +02:00
letter-avatars.js Fix possible weird objects as email 2018-07-27 13:36:22 +02:00
logger.js Fix streaming for winston 2018-11-16 11:49:39 +01:00
realtime.js switching to eslint for code checking 2018-11-14 23:15:36 +01:00
response.js Disallow creation of robots.txt in freeurl 2018-11-17 13:23:03 +01:00
utils.js switch to __dirname 2017-06-02 11:34:35 +01:00