aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/initializers/constants.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-10-25 14:53:39 +0200
committerChocobozzz <me@florianbigard.com>2019-10-25 14:54:32 +0200
commitf67d757452c63fff27df596b575ae1ca9225a1a0 (patch)
treea62ece9dabd7f861a9735abfeed7241104645cdb /server/initializers/constants.ts
parent4ce7eb71ba28a563336c07d10c182ff89461c72b (diff)
downloadPeerTube-f67d757452c63fff27df596b575ae1ca9225a1a0.tar.gz
PeerTube-f67d757452c63fff27df596b575ae1ca9225a1a0.tar.zst
PeerTube-f67d757452c63fff27df596b575ae1ca9225a1a0.zip
Increase clock skew for HTTP signatures
Diffstat (limited to 'server/initializers/constants.ts')
-rw-r--r--server/initializers/constants.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts
index 190fd427a..fd4c0fdaa 100644
--- a/server/initializers/constants.ts
+++ b/server/initializers/constants.ts
@@ -467,7 +467,8 @@ const ACTIVITY_PUB_ACTOR_TYPES: { [ id: string ]: ActivityPubActorType } = {
467const HTTP_SIGNATURE = { 467const HTTP_SIGNATURE = {
468 HEADER_NAME: 'signature', 468 HEADER_NAME: 'signature',
469 ALGORITHM: 'rsa-sha256', 469 ALGORITHM: 'rsa-sha256',
470 HEADERS_TO_SIGN: [ '(request-target)', 'host', 'date', 'digest' ] 470 HEADERS_TO_SIGN: [ '(request-target)', 'host', 'date', 'digest' ],
471 CLOCK_SKEW_SECONDS: 1800
471} 472}
472 473
473// --------------------------------------------------------------------------- 474// ---------------------------------------------------------------------------