hedgedoc/lib/config
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
..
default.js Fix wrong maxAgeSeconds multiplication 2018-11-19 22:01:54 +01:00
defaultSSL.js Rename forgotten values 2018-03-26 20:15:45 +02:00
dockerSecret.js Add Azure Blob Storage support 2018-06-01 10:07:52 +02:00
enum.js refactor(config.js): Extract config file 2017-05-08 19:29:07 +08:00
environment.js Merge pull request #1053 from dsprenkels/robots.txt 2018-11-17 13:30:06 +01:00
hackmdEnvironment.js Rename environment variables and add legacy support. 2018-06-24 13:40:18 +02:00
index.js Upgrade winston 2018-11-14 00:47:11 +01:00
oldDefault.js Change config to camel case with backwards compatibility 2018-03-25 19:08:14 +02:00
oldEnvironment.js fix(config): ssl environment configs not parse properly 2017-05-08 20:41:38 +08:00
utils.js Fix wrong reading from commit 2018-11-12 11:18:38 +01:00