summaryrefslogtreecommitdiff
path: root/packages/backend/src/server/ServerService.ts (follow)
Commit message (Collapse)AuthorAgeFilesLines
* split url into webUrl and localUrl (like mastodon)Freya Murphy4 days1-3/+3
|
* fix(backend): fix #16994 by approach 6 (#17005)かっこかり2025-12-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * fix(backend): narrow down trustproxy default value and enhance documentation on how to configure it * Update Changelog * indent [ci skip] * Update CHANGELOG.md [ci skip] * add cloudflare specific example * Update .config/example.yml Co-authored-by: anatawa12 <anatawa12@icloud.com> * fix: productionでIPレートリミットされる際にlocalhostからリクエストが来たらログを残すように * fix: wrong condition * fix: use own logger for signin api * flip configuration * fix * fix [ci skip] * fix: wrong message [ci skip] * fix: どこがおかしいか明記 [ci skip] --------- Co-authored-by: anatawa12 <anatawa12@icloud.com>
* Revert "Merge commit from fork"syuilo2025-12-161-1/+1
| | | | | | This reverts commit 5512898463fa8487b9e6488912f35102b91f25f7. see https://github.com/misskey-dev/misskey/issues/16994
* Merge commit from forkKagami Sascha Rosylight2025-12-031-1/+1
| | | | | | | * Change trustProxy default value to false * Update trustProxy default value in example.yml * Update trustProxy default description in example.yml
* enhance(backend): 設定ファイルにFastifyOptions.trustProxyを追加 ↵饺子w (Yumechi)2025-09-221-1/+1
| | | | | | | | | | | | | | | (#16567) * enhance(backend): 設定ファイルにFastifyOptions.trustProxyを追加 Signed-off-by: eternal-flame-AD <yume@yumechi.jp> * try harder Signed-off-by: eternal-flame-AD <yume@yumechi.jp> --------- Signed-off-by: eternal-flame-AD <yume@yumechi.jp>
* enhance: verify-emailにフロントエンドUIを実装 (#16431)かっこかり2025-08-211-24/+0
| | | | | | | | | | | | | | | * enhance: メールのverifyをAPIに変更 * enhance(frontend): メールのVerifyページを追加 * fix * :art: * :art: * Update Changelog * lint
* enhance: ↵syuilo2025-05-121-3/+3
| | | | | | | | | | | | | | | | | いくつかの設定ファイルの項目をコントロールパネルで設定するように (#16026) * wip * Update CHANGELOG.md * feat: migrate to existing config value (#16030) * wip * Update CHANGELOG.md --------- Co-authored-by: anatawa12 <anatawa12@icloud.com>
* refactor: ファイルアップロード時のテストを追加 (#15928)おさむのひと2025-05-041-1/+8
| | | | | * refactor: ファイルアップロード時のテストを追加 * なぜかsemverが消えてた
* Revert "fix: ↵おさむのひと2025-05-031-4/+3
| | | | | | | | | 添付ファイルのあるリクエストを受けたときの初動を改善 (#15896)" (#15927) * Revert "fix: 添付ファイルのあるリクエストを受けたときの初動を改善 (#15896)" This reverts commit 7e8cc4d7c0a86ad0bf71a727fb16132e8bc180a8. * fix CHANGELOG.md
* fix: ↵おさむのひと2025-04-291-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 添付ファイルのあるリクエストを受けたときの初動を改善 (#15896) * wip * ロールポリシーの値も参照するように * エンドポイントのテストを追加 * fix review * add spdx * fix CHANGELOG.md * fix test * regenerate * add log * Revert "add log" This reverts commit 4b2bf59a609b85ca0bfcc9b71438db782f11983d. * add log * fix * Revert "add log" This reverts commit c5a73d57da0f30ec5215e08a8b4d78785cce48d1.
* fix: avatarId が null のときにも avatarUrl が non null ↵anatawa122025-04-151-1/+1
| | | | 担ってることがある問題 (#15833)
* Merge commit from fork饺子w (Yumechi)2025-02-231-0/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * fix(backend): Fix an issue where the origin of ActivityPub lookup response was not validated correctly. [GHSA-6w2c-vf6f-xf26](https://github.com/misskey-dev/misskey/security/advisories/GHSA-6w2c-vf6f-xf26) Signed-off-by: eternal-flame-AD <yume@yumechi.jp> * Enhance: Add configuration option to disable all external redirects when responding to an ActivityPub lookup (config.disallowExternalApRedirect) Signed-off-by: eternal-flame-AD <yume@yumechi.jp> * fixup! fix(backend): Fix an issue where the origin of ActivityPub lookup response was not validated correctly. * docs & one edge case Signed-off-by: eternal-flame-AD <yume@yumechi.jp> * apply suggestions Signed-off-by: eternal-flame-AD <yume@yumechi.jp> * remove stale frontend reference to _responseInvalidIdHostNotMatch Signed-off-by: eternal-flame-AD <yume@yumechi.jp> * apply suggestions Signed-off-by: eternal-flame-AD <yume@yumechi.jp> --------- Signed-off-by: eternal-flame-AD <yume@yumechi.jp>
* refactor/perf(backend): provide metadata statically (#14601)syuilo2024-09-221-4/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * wip * Update ReactionService.ts * Update ApiCallService.ts * Update timeline.ts * Update GlobalModule.ts * Update GlobalModule.ts * Update NoteEntityService.ts * wip * wip * wip * Update ApPersonService.ts * wip * Update GlobalModule.ts * Update mock-resolver.ts * Update RoleService.ts * Update activitypub.ts * Update activitypub.ts * Update activitypub.ts * Update activitypub.ts * Update activitypub.ts * clean up * Update utils.ts * Update UtilityService.ts * Revert "Update utils.ts" This reverts commit a27d4be764b78c1b5a9eac685e261fee49331d89. * Revert "Update UtilityService.ts" This reverts commit e5fd9e004c482cf099252201c0c1aa888e001430. * vuwa- * Revert "vuwa-" This reverts commit 0c3bd12472b4b9938cdff2d6f131e6800bc3724c. * Update entry.ts * Update entry.ts * Update entry.ts * Update entry.ts * Update jest.setup.ts
* update deps (#14594)syuilo2024-09-221-1/+1
| | | | | | | | | | | * wip * Update ClientServerService.ts * eslint * Update fetch-resource.ts * wip
* refactor(backend): remove unused logger optionsyuilo2024-06-061-1/+1
|
* feat(backend): add /healthz endpoint (#13834)Acid Chicken2024-05-231-0/+3
| | | | | | | | | | | | | * feat(backend): add /healthz endpoint * feat(backend): also check meilisearch status if available * style: header * chore: no-store * chore: healthcheck.sh * style: format
* update deps (#13624)syuilo2024-05-041-4/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * update deps * Update package.json * update deps * build: pass --strip-leading-paths to restore 0.2.x behavior (#13684) * :v: * :v: * pureimageの代わりに@napi-rs/canvasを使う (#13748) * pureimageの代わりに@napi-rs/canvasを使う * remove writestream * remove createtemp * wip * Update ClientServerService.ts * update pnpm to 9.x * update deps * re: update pnpm to 9.x * update node * :v: --------- Co-authored-by: anatawa12 <anatawa12@icloud.com> Co-authored-by: tamaina <tamaina@hotmail.co.jp>
* feat: improve emoji endpoint (#13742)Cocoa Hoto2024-04-251-3/+11
|
* (re) update SPDX-FileCopyrightTexttamaina2024-02-131-1/+1
| | | | Fix #13290
* Revert "update SPDX-FileCopyrightText"tamaina2024-02-131-1/+1
| | | | This reverts commit 9b5aeb76d8c9372d67058c512597152b6bf222f2.
* update SPDX-FileCopyrightTextsyuilo2024-02-121-1/+1
|
* refactor(backend): User関連のスキーマ/型の指定を強くする ↵zyoshoka2024-01-311-1/+1
| | | | | | | | | | | | | | | | | (#12808) * refactor(backend): User関連のスキーマ/型の指定を強くする * refactor(backend): `pack()`の引数にスキーマを指定するように * chore: fix ci * fix: 変更漏れ * fix ci --------- Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
* feat(backend/oauth): allow CORS for token endpoint (#12814)Kagami Sascha Rosylight2023-12-271-1/+2
| | | | | | | * feat(backend/oauth): allow CORS for token endpoint * no need to explicitly set origin to `*` * Update CHANGELOG.md
* fix(backend): /emojiにおける拡張子の削除方法を修正 (#12543)Nanaka Hiira2023-12-031-2/+2
| | | Co-authored-by: Acid Chicken (硫酸鶏) <root@acid-chicken.com>
* enhance(backend): Implementation of HTTP header and body validation to fix ↵Jaehong Kang2023-11-151-2/+2
| | | | | | | SIF-2023-002 (#12334) Using Buffer instead of string Co-authored-by: perillamint <perillamint@silicon.moe>
* Merge pull request from GHSA-3f39-6537-3cgcsyuilo2023-11-141-0/+8
| | | | | | | | This commit implements HTTP header and body validation to fix [SIF-2023-002](https://advisory.silicon.moe/advisory/sif-2023-002/) Signed-off-by: perillamint <perillamint@silicon.moe> Co-authored-by: perillamint <perillamint@silicon.moe> Co-authored-by: yunochi <yuno@yunochi.com>
* chore: disable debug log of fastifysyuilo2023-10-191-1/+1
|
* (fix) メールアドレス認証失敗時にメッセージを表示 (#11986)かっこかり2023-10-081-3/+3
|
* update deps (#11820)syuilo2023-09-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * update deps * fix * wip * wip * wip * Update docker-compose.yml.example * Delete reviewer-lottery.yml * Update RepositoryModule.ts * wip * wip * clean up * update deps * wip * wip
* feat(backend): support OAuth 2.0 authorization (#11053)Kagami Sascha Rosylight2023-07-271-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * feat(backend): support OAuth 2.0 authorization * secureRndstr fix * nanndekowareta * nanndekowareta2 * nanndekowareta3 * unref? * refactor to not close fastify * use microformats-parser * Update OAuth2ProviderService.ts * clarify the reason behind dns lookup * refactor(backend): use @types/oauth2orize-pkce (#11350) * refactor(backend): use @types/oauth2orize-pkce * Update package.json * Update pnpm-lock.yaml --------- Co-authored-by: Kagami Sascha Rosylight <saschanaz@outlook.com> --------- Co-authored-by: mtgto <hogerappa@gmail.com> Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
* chore: ↵Shun Sakai2023-07-271-0/+5
| | | | | | | | | | | | | | 著作権とライセンスについての情報を各ファイルに追加する (#11348) * chore: Add the SPDX information to each file Add copyright and licensing information as defined in version 3.0 of the REUSE Specification. * tweak format --------- Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
* enhance(backend): add unix socket support (#11275)dogcraft2023-07-171-1/+12
| | | | | | | | | | | * unix socket support * add changelog * lint --------- Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
* perf(backend): make some features optionablesyuilo2023-07-021-4/+11
| | | | | Resolve #11064 Resolve #11065
* perf(backend): use websockets/ws instead of theturtle32/WebSocket-Node (#10884)syuilo2023-05-291-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * perf(backend): use websockets/ws instead of theturtle32/WebSocket-Node Resolve #10883 * refactor * Update StreamingApiServerService.ts * Update StreamingApiServerService.ts * :v: * Update StreamingApiServerService.ts * fix main stream init * fix timing 2 * setIntervalの重複を避ける(気休め) * add comment * :v: --------- Co-authored-by: tamaina <tamaina@hotmail.co.jp>
* refactorsyuilo2023-05-291-1/+7
|
* perf(backend): cache avatar and banner url to dbsyuilo2023-04-061-2/+1
|
* enhance(backend): restore OpenAPI endpoints (#10281)Kagami Sascha Rosylight2023-03-101-0/+14
| | | | | | | | | | | | | | | | | * enhance(backend): restore OpenAPI endpoints * Update CHANGELOG.md * version * set max-age * update redoc * follow redoc documentation --------- Co-authored-by: tamaina <tamaina@hotmail.co.jp>
* test(backend): APIテストの復活 (#10163)Kagami Sascha Rosylight2023-03-031-4/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Revert 1c5291f8185651c231903129ee7c1cee263f9f03 * APIテストの復活 * apiテストの移行 * moduleNameMapper修正 * simpleGetでthrowしないように status確認しているので要らない * longer timeout * ローカルでは問題ないのになんで * case sensitive * Run Nest instance within the current process * Skip some setIntervals * wait for 5 seconds * kill them all!! * logHeapUsage: true * detectOpenHandlesがじゃましているらしい * maxWorkers=1? * restore drive api tests * workerIdleMemoryLimit: 500MB * 1024MiB * Wait what
* fix(sw): ↵tamaina2023-02-281-6/+14
| | | | | | | | | | | | | プッシュ通知でカスタム絵文字リアクションを表示できるように (#10122) * fix(sw): プッシュ通知でカスタム絵文字リアクションを表示できるように Fix #10117 /emoji/*.webpにbadgeモードを * ? * :v: * fix
* Revert "Allow configuring the listen host (#9924)"syuilo2023-02-221-3/+3
| | | | This reverts commit 3dfe3aa9a48cba0570508ef037c5289894fa731b.
* Allow configuring the listen host (#9924)ledlamp2023-02-221-3/+3
|
* refactor: remove all unused imports (#9951)Kagami Sascha Rosylight2023-02-161-1/+0
| | | Co-authored-by: tamaina <tamaina@hotmail.co.jp>
* refactor: fix typessyuilo2023-02-091-0/+1
|
* perf(server): improvement of external mediaProxy (#9787)tamaina2023-02-041-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | * perf(server): improvement of external mediaProxy * add a comment * :v: * /filesでsharpの処理を行わずリダイレクトする * fix * thumbnail => static * Fix #9788 * add avatar mode * add url * fix * static.webp * remove encodeURIComponent from media proxy path * remove existance check
* refactor: ↵tamaina2023-01-261-4/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | /proxyをFileServerServiceに統合し、/proxyのurlで/filesが指定されていた場合は直接ファイルを解決するようにする (#9709) * wip? * clean up * Implement? HttpFetchService * :v: * remove node-fetch * fix * refactor * fix * gateway timeout * UndiciFetcherクラスを追加 (仮コミット, ビルドもstartもさせていない) * fix * add logger and fix url preview * fix ip check * enhance logger and error handling * fix * fix * clean up * Use custom fetcher for ApRequest / ApResolver * bypassProxyはproxyBypassHostsに判断を委譲するように * set maxRedirections (default 3, ApRequest/ApResolver: 0) * fix * wip???? * wip * :v: * set .node-version * clean up * refactor * clean up * refactor * refactor detectRequestType * rename detectResponseType * :v: * fix * wip * clean up * no got * remove got * wip * :v: * fix * clean up * remove unnnecessary const * good cleanup * no stream * Revert "no stream" This reverts commit 636f9192fcd2b17e71bbf6b5b106b490e0f66244. * fix * cache-control: max-age=300 to error * refactor cleanup
* enhance(server): set Cache-Control header for some routessyuilo2023-01-211-2/+5
|
* 存在しないカスタム絵文字をテキストで表示するようにsyuilo2023-01-171-2/+7
| | | | Resolve #9516
* enhance(server): refactor and tweak emoji proxysyuilo2023-01-071-2/+41
|
* Update ServerService.tssyuilo2022-12-081-1/+1
|
* Update ServerService.tssyuilo2022-12-081-1/+1
|