Add option to serve `public` folder

オープン
#38 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

  • #40 @piranna による — マージされずにクローズ

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
25/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
typescript
領域
backend

調査の方向性

Start with lib/run-uws-tracker.ts around lines 238–246, where the issue says non-WebSocket, non-stats, and non-index requests are rejected. Read the existing opt-in handling for index.html and check the linked pull request #40 for prior work. Done means an opt-in can serve files from a public folder before the 404 fallback, including its index.html if appropriate.

索引モデルが issue の本文から書いたものです。

説明

enhancement

At https://github.com/Novage/wt-tracker/blob/400a4369fbe656e041514c7a08a94092888afc2f/lib/run-uws-tracker.ts#L238-L246 is being explicitly forbidden to serve any content that are not the WebTorrent WebSocket connections, the JSON stats endpoint, or an index.html file. In the same way that serving the index.html file is an opt-in, it would be useful to allow to check and serve a public folder before give up and return a 404, maybe being the index.html file inside it. That would allow to serve not only some Javascript and CSS files associated with the index.html file, but more important, it would allow to serve the actual HLS fragments directly from the same server, without needing to spin-up other processes.

主要言語
TypeScript
スター
279
フォーク
95
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Novage/wt-tracker のほかの issue

Novage/wt-tracker の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。