summaryrefslogtreecommitdiffstats
path: root/core/js/setupchecks.js
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2016-04-13 08:40:49 +0200
committerMorris Jobke <hey@morrisjobke.de>2016-04-13 08:47:34 +0200
commite03d289b70030d8d016b927a9617827672cd6d0c (patch)
tree058313d48d90bdc7fee4fc0669c3a5f4fcb15f70 /core/js/setupchecks.js
parenta2da7614a0516d1e1c07ef60b308645d7a8ad480 (diff)
downloadnextcloud-server-e03d289b70030d8d016b927a9617827672cd6d0c.tar.gz
nextcloud-server-e03d289b70030d8d016b927a9617827672cd6d0c.zip
Use 6 months as SSL STS header threshold
* this uses 6 months (6 * 30 * 24 * 60 * 60 = 15552000) * old value was half a year (365 / 2 * 24 * 60 * 60 = 15768000) * fixes #23957
Diffstat (limited to 'core/js/setupchecks.js')
-rw-r--r--core/js/setupchecks.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/js/setupchecks.js b/core/js/setupchecks.js
index 025cdb0fcd6..4cc50e51ae6 100644
--- a/core/js/setupchecks.js
+++ b/core/js/setupchecks.js
@@ -273,7 +273,7 @@
}
}
- var minimumSeconds = 15768000;
+ var minimumSeconds = 15552000;
if(isNaN(transportSecurityValidity) || transportSecurityValidity <= (minimumSeconds - 1)) {
messages.push({
msg: t('core', 'The "Strict-Transport-Security" HTTP header is not configured to at least "{seconds}" seconds. For enhanced security we recommend enabling HSTS as described in our <a href="{docUrl}" rel="noreferrer">security tips</a>.', {'seconds': minimumSeconds, docUrl: '#admin-tips'}),