summaryrefslogtreecommitdiff
path: root/packages/backend/src/server/FileServerService.ts (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Merge remote-tracking branch 'misskey/master' into feature/misskey-2024.07dakkar2024-08-021-1/+1
|\
| * refactor(backend): remove unused logger optionsyuilo2024-06-061-1/+1
| |
* | Merge remote-tracking branch 'misskey/develop' into future-2024-04-25dakkar2024-04-251-3/+4
|\|
| * fix(backend): ↵MeiMei2024-04-151-3/+4
| | | | | | | | | | | | | | nginx経由で/files/にRangeリクエストされた場合に正しく応答できないのを修正 (#13712) * Fix files * CHANGELOG
| * fix(backend): ↵かっこかり2024-04-141-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | FileServerServiceでレンジリクエストの場合に適切なレスポンスコードが返らない問題を修正 (#13701) * return 206 for every ranged response - fixes #494 (cherry picked from commit 92eec2178fd103e9ea2bcd646aacab1fb496a33b) * detect size of remote files - fixes #494 without this, remote files are assumed to have size 0 (even if we just downloaded them!) and the range-related code won't run (cherry picked from commit 960f4fcff78a1f019c9a9377853fcd90dbfb7575) --------- Co-authored-by: dakkar <dakkar@thenautilus.net>
* | detect size of remote files - fixes #494dakkar2024-04-091-1/+3
| | | | | | | | | | without this, remote files are assumed to have size 0 (even if we just downloaded them!) and the range-related code won't run
* | return 206 for every ranged response - fixes #494dakkar2024-04-091-0/+2
| |
* | merge: upstreamMarie2024-02-191-14/+18
|\|
| * (re) update SPDX-FileCopyrightTexttamaina2024-02-131-1/+1
| | | | | | | | Fix #13290
| * Revert "update SPDX-FileCopyrightText"tamaina2024-02-131-1/+1
| | | | | | | | This reverts commit 9b5aeb76d8c9372d67058c512597152b6bf222f2.
| * perf: omit search for immutable static requests (#13265)Acid Chicken (硫酸鶏)2024-02-131-13/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | * perf: omit search for immutable static requests * perf: also applies to /files * fix: exclude /proxy * /files/:key/*を301 redirectに --------- Co-authored-by: tamaina <tamaina@hotmail.co.jp>
| * update SPDX-FileCopyrightTextsyuilo2024-02-121-1/+1
| |
* | merge: upstreamMarie2024-01-151-10/+101
|\|
| * enhance: 動画・音声周りのUIと動作改良 (#12925)かっこかり2024-01-151-10/+101
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * wip * (fix) `/files` をバイトレンジリクエストに対応させる * video * audio * fix * fix * spdx * fix (rangeRequest) * fix * Update CHANGELOG.md * (add) ボリュームを保存できるように * (fix) ミュート復帰時に音量が固定される * named export * tweak design * Add sensitive class for audio component * Refactor seekbar styles * Refactor hms * Revert "(add) ボリュームを保存できるように" This reverts commit 6271f9493b63f96d0dd9915207e97fe120ef9037. * Revert "(fix) ミュート復帰時に音量が固定される" This reverts commit a65002b56ecdcb10f76bcc2debbe38593a69643f. * revert revert changes --------- Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
* | merge: upstreamMarie2024-01-091-1/+1
|\|
| * chore: use summaly, browser-image-resizer, and sharp-read-bmp on ↵tamaina2023-12-311-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | registry.npmjs.org instead of git (#12856) * chore: use @misskey-dev/summaly on registry.npmjs.org instead of git * fix backend dependency * fic backend dependency * @misskey-dev/sharp-read-bmp * fix * use @misskey-dev/browser-image-resizer
* | fix: email validationMarie2023-12-231-3/+1
|/
* fix(dev): ↵かっこかり2023-12-161-0/+3
| | | | | | | | | | | ファイルの読み込みに失敗することがあるのを修正 (#12684) * (enhance) コード入力をMkCodeEditorに変更 * (fix) devでファイルの読み込みに失敗することがある * Revert "(enhance) コード入力をMkCodeEditorに変更" This reverts commit 726d56c3e962680efc5b5a166e2210d09730341f.
* 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