Revert "perf(backend): use RSA 2048bit"

This reverts commit af2368bd2b.
This commit is contained in:
Peter Cai 2023-08-31 02:34:35 +02:00
parent 96c7c85ad0
commit dadba96935
3 changed files with 2 additions and 3 deletions

View file

@ -641,7 +641,6 @@
- nsfwjs のモデルロードを排他することで、重複ロードによってメモリ使用量が増加しないように
- 連合の配送ジョブのパフォーマンスを向上ロック機構の見直し、Redisキャッシュの活用
- featuredートのsignedGet回数を減らしました
- ActivityPubの署名用鍵長を2048bitに変更しパフォーマンスを向上(新規アカウントのみ)
- リモートサーバーのセンシティブなファイルのキャッシュだけを無効化できるオプションを追加
- MeilisearchにIndexするートの範囲を設定できるように
- Export notes with file detail

View file

@ -38,7 +38,7 @@ export class CreateSystemUserService {
// Generate secret
const secret = generateNativeUserToken();
const keyPair = await genRsaKeyPair();
const keyPair = await genRsaKeyPair(4096);
let account!: MiUser;

View file

@ -95,7 +95,7 @@ export class SignupService {
const keyPair = await new Promise<string[]>((res, rej) =>
generateKeyPair('rsa', {
modulusLength: 2048,
modulusLength: 4096,
publicKeyEncoding: {
type: 'spki',
format: 'pem',