summaryrefslogtreecommitdiff
path: root/packages/backend/src/server/FileServerService.ts (follow)
Commit message (Collapse)AuthorAgeFilesLines
* 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
* refactor: prefix Mi for all entities (#11719)syuilo2023-08-161-5/+5
| | | | | | | | | | | | | | | | | | | | | * wip * wip * wip * wip * Update RepositoryModule.ts * wip * wip * wip * Revert "wip" This reverts commit c1c13b37d2aaf3c65bc148212da302b0eb7868bf.
* 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>
* Fix auto-fixable issues (#11314)woxtu2023-07-191-12/+12
|
* [fix] .wav .flac ファイルを再生可能にする (#10686)Yuriha2023-04-261-1/+2
| | | | | | | | | | | | | | | | | | | | | | * .wav .flac ファイルを再生可能にする file-typeにより判定されたMIME TypeをHTML5 Audio/Video要素に認識されるものに書き換える * fix typecheck error * frontend側の FILE_TYPE_BROWSERSAFEも更新 * Update packages/backend/src/core/FileInfoService.ts * :v: * 後方互換を確保 * add tests * update changelog.md --------- Co-authored-by: tamaina <tamaina@hotmail.co.jp>
* fix(server): ↵tamaina2023-04-191-1/+2
| | | | 1:1ではない画像のリアクション通知バッジが左や上に寄ってしまっていたのを中央に来るように修正
* fix: Do not use avif (#10301)tamaina2023-03-121-5/+5
| | | | | | | * fix: Do not use avif * fix * fix
* enhance(server): ↵tamaina2023-03-111-5/+5
| | | | | | | | | | | | | | | | | | | | | 画像圧縮周り(主にサムネイルの仕様)の変更 (#10287) * DriveService, is-mime-image * static, previewをavifに, アニメーション画像でもthumbnailを生成 * fallback * animated: true * fix * avatarはwebp * revert ?? file.url --------- Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
* enhance(backend): restore OpenAPI endpoints (#10281)Kagami Sascha Rosylight2023-03-101-11/+5
| | | | | | | | | | | | | | | | | * 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>
* enhance(server): メディアプロキシでico,bmpを読めるように ↵tamaina2023-03-041-7/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (#10186) * enhance(server): downloadUrlでContent-Dispositionからファイル名を取得 Resolve #10036 Resolve #4750 * untitled * オブジェクトストレージのContent-Dispositionのファイル名の拡張子をContent-Typeに添ったものにする * :v: * tiff * fix filename * add test * /files/でもContent-Disposition * enhance(server): メディアプロキシでico,bmpを読めるように Fix #10120 * comment * fix test --------- Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
* enhance(server): ↵tamaina2023-03-041-21/+27
| | | | | | | | | | | | | | | | | | | | | | | | | downloadUrlでContent-Dispositionからファイル名を取得 (#10150) * enhance(server): downloadUrlでContent-Dispositionからファイル名を取得 Resolve #10036 Resolve #4750 * untitled * オブジェクトストレージのContent-Dispositionのファイル名の拡張子をContent-Typeに添ったものにする * :v: * tiff * fix filename * add test * /files/でもContent-Disposition * comment * fix test
* fix: ↵tamaina2023-02-281-1/+4
| | | | | | | | | | | | | | | 外部メディアプロキシ使用時にアバタークロップができない問題を修正 (#10142) * wip * fix * Update packages/frontend/src/scripts/media-proxy.ts Co-authored-by: syuilo <Syuilotan@yahoo.co.jp> --------- Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
* style(backend): fix all eslint errors (#9967)Kagami Sascha Rosylight2023-02-171-3/+3
|
* enhance(server): videoThumbnailGenerator config (#9845)tamaina2023-02-121-0/+6
| | | | | | | | | | | | | * enhance(server): videoThumbnailGenerator config * :v: * fix * 相対url * サムネイルのproxyRemoteFilesは直接プロキシを指定する * メディアプロキシ
* /proxyでemoji, ↵tamaina2023-02-091-8/+16
| | | | avatarなどの命令がありかつ画像でないなら404を返すように
* fix(server): clean up file in FileServertamaina2023-02-041-0/+4
|
* perf(server): improvement of external mediaProxy (#9787)tamaina2023-02-041-28/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-73/+313
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | /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
* Fix import related TypeScript errors (#9321)Kagami Sascha Rosylight2022-12-141-1/+1
| | | | | | | * Add missing @types packages * Fix TS1272 type only imports * Fix TS2821 import assertion
* enhance: AVIF support (#9281)tamaina2022-12-081-1/+1
| | | | | | | | | | | | | * chore: Make image/avif browsersafe * server side * change FileInfoService * :v: * avifはMastodonでは絶望的 see https://github.com/misskey-dev/misskey/issues/9283 Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
* refactor: introduce bindThis decorator to bind this automaticalysyuilo2022-12-041-1/+5
|
* Fastify (#9106)syuilo2022-12-031-52/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * fix * Update SignupApiService.ts * wip * wip * Update ClientServerService.ts * wip * wip * wip * Update WellKnownServerService.ts * wip * wip * update des * wip * Update ApiServerService.ts * wip * update deps * Update WellKnownServerService.ts * wip * update deps * Update ApiCallService.ts * Update ApiCallService.ts * Update ApiServerService.ts
* fix import typesyuilo2022-09-211-2/+2
|
* testsyuilo2022-09-191-7/+7
|
* fixsyuilo2022-09-181-1/+1
|
* refactor(backend): refactor loggersyuilo2022-09-181-10/+15
|
* なんかもうめっちゃ変えたsyuilo2022-09-181-0/+178