diff options
author | Chocobozzz <me@florianbigard.com> | 2021-02-26 14:22:25 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-02-26 14:22:25 +0100 |
commit | 8795d6f254bd8f88c385bf77b82cc6f177c94df9 (patch) | |
tree | 88f8f4fced9e0c12db5b43dcac6e44bd94eb8b1a /server/initializers/constants.ts | |
parent | 92315d979c3f424d81f8fca3c8831d81e4e2a6d6 (diff) | |
download | PeerTube-8795d6f254bd8f88c385bf77b82cc6f177c94df9.tar.gz PeerTube-8795d6f254bd8f88c385bf77b82cc6f177c94df9.tar.zst PeerTube-8795d6f254bd8f88c385bf77b82cc6f177c94df9.zip |
Fix broken local actors
Some channels can't federate because they don't have public/private
keys, maybe because the generation failed for various reasons
Diffstat (limited to 'server/initializers/constants.ts')
-rw-r--r-- | server/initializers/constants.ts | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts index bbf55d7a4..74192d590 100644 --- a/server/initializers/constants.ts +++ b/server/initializers/constants.ts | |||
@@ -1,8 +1,8 @@ | |||
1 | import { randomInt } from '../../shared/core-utils/miscs/miscs' | ||
2 | import { CronRepeatOptions, EveryRepeatOptions } from 'bull' | 1 | import { CronRepeatOptions, EveryRepeatOptions } from 'bull' |
3 | import { randomBytes } from 'crypto' | 2 | import { randomBytes } from 'crypto' |
4 | import { invert } from 'lodash' | 3 | import { invert } from 'lodash' |
5 | import { join } from 'path' | 4 | import { join } from 'path' |
5 | import { randomInt } from '../../shared/core-utils/miscs/miscs' | ||
6 | import { | 6 | import { |
7 | AbuseState, | 7 | AbuseState, |
8 | JobType, | 8 | JobType, |
@@ -24,7 +24,7 @@ import { CONFIG, registerConfigChangedHandler } from './config' | |||
24 | 24 | ||
25 | // --------------------------------------------------------------------------- | 25 | // --------------------------------------------------------------------------- |
26 | 26 | ||
27 | const LAST_MIGRATION_VERSION = 600 | 27 | const LAST_MIGRATION_VERSION = 605 |
28 | 28 | ||
29 | // --------------------------------------------------------------------------- | 29 | // --------------------------------------------------------------------------- |
30 | 30 | ||
@@ -141,6 +141,7 @@ const JOB_ATTEMPTS: { [id in JobType]: number } = { | |||
141 | 'video-transcoding': 1, | 141 | 'video-transcoding': 1, |
142 | 'video-import': 1, | 142 | 'video-import': 1, |
143 | 'email': 5, | 143 | 'email': 5, |
144 | 'actor-keys': 3, | ||
144 | 'videos-views': 1, | 145 | 'videos-views': 1, |
145 | 'activitypub-refresher': 1, | 146 | 'activitypub-refresher': 1, |
146 | 'video-redundancy': 1, | 147 | 'video-redundancy': 1, |
@@ -153,6 +154,7 @@ const JOB_CONCURRENCY: { [id in JobType]?: number } = { | |||
153 | 'activitypub-follow': 1, | 154 | 'activitypub-follow': 1, |
154 | 'video-file-import': 1, | 155 | 'video-file-import': 1, |
155 | 'email': 5, | 156 | 'email': 5, |
157 | 'actor-keys': 1, | ||
156 | 'videos-views': 1, | 158 | 'videos-views': 1, |
157 | 'activitypub-refresher': 1, | 159 | 'activitypub-refresher': 1, |
158 | 'video-redundancy': 1, | 160 | 'video-redundancy': 1, |
@@ -167,6 +169,7 @@ const JOB_TTL: { [id in JobType]: number } = { | |||
167 | 'video-transcoding': 1000 * 3600 * 48, // 2 days, transcoding could be long | 169 | 'video-transcoding': 1000 * 3600 * 48, // 2 days, transcoding could be long |
168 | 'video-import': 1000 * 3600 * 2, // 2 hours | 170 | 'video-import': 1000 * 3600 * 2, // 2 hours |
169 | 'email': 60000 * 10, // 10 minutes | 171 | 'email': 60000 * 10, // 10 minutes |
172 | 'actor-keys': 60000 * 20, // 20 minutes | ||
170 | 'videos-views': undefined, // Unlimited | 173 | 'videos-views': undefined, // Unlimited |
171 | 'activitypub-refresher': 60000 * 10, // 10 minutes | 174 | 'activitypub-refresher': 60000 * 10, // 10 minutes |
172 | 'video-redundancy': 1000 * 3600 * 3, // 3 hours | 175 | 'video-redundancy': 1000 * 3600 * 3, // 3 hours |