aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/initializers
diff options
context:
space:
mode:
Diffstat (limited to 'server/initializers')
-rw-r--r--server/initializers/constants.ts7
1 files changed, 7 insertions, 0 deletions
diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts
index e8843a3ab..28d51068b 100644
--- a/server/initializers/constants.ts
+++ b/server/initializers/constants.ts
@@ -532,6 +532,12 @@ const ACTIVITY_PUB_ACTOR_TYPES: { [ id: string ]: ActivityPubActorType } = {
532 APPLICATION: 'Application' 532 APPLICATION: 'Application'
533} 533}
534 534
535const HTTP_SIGNATURE = {
536 HEADER_NAME: 'signature',
537 ALGORITHM: 'rsa-sha256',
538 HEADERS_TO_SIGN: [ 'date', 'host', 'digest', '(request-target)' ]
539}
540
535// --------------------------------------------------------------------------- 541// ---------------------------------------------------------------------------
536 542
537const PRIVATE_RSA_KEY_SIZE = 2048 543const PRIVATE_RSA_KEY_SIZE = 2048
@@ -731,6 +737,7 @@ export {
731 VIDEO_EXT_MIMETYPE, 737 VIDEO_EXT_MIMETYPE,
732 CRAWL_REQUEST_CONCURRENCY, 738 CRAWL_REQUEST_CONCURRENCY,
733 JOB_COMPLETED_LIFETIME, 739 JOB_COMPLETED_LIFETIME,
740 HTTP_SIGNATURE,
734 VIDEO_IMPORT_STATES, 741 VIDEO_IMPORT_STATES,
735 VIDEO_VIEW_LIFETIME, 742 VIDEO_VIEW_LIFETIME,
736 buildLanguages 743 buildLanguages