1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-05 19:42:24 +02:00

Increase clock skew for HTTP signatures

This commit is contained in:
Chocobozzz 2019-10-25 14:53:39 +02:00
parent 4ce7eb71ba
commit f67d757452
No known key found for this signature in database
GPG key ID: 583A612D890159BE
2 changed files with 3 additions and 2 deletions

View file

@ -467,7 +467,8 @@ const ACTIVITY_PUB_ACTOR_TYPES: { [ id: string ]: ActivityPubActorType } = {
const HTTP_SIGNATURE = {
HEADER_NAME: 'signature',
ALGORITHM: 'rsa-sha256',
HEADERS_TO_SIGN: [ '(request-target)', 'host', 'date', 'digest' ]
HEADERS_TO_SIGN: [ '(request-target)', 'host', 'date', 'digest' ],
CLOCK_SKEW_SECONDS: 1800
}
// ---------------------------------------------------------------------------