Add option to serve `public` folder
Chưa có ai nhận issue này.
- #40 của @piranna — đã đóng, không merge
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 25/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- typescript
- Lĩnh vực
- backend
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- TypeScript
- Star
- 279
- Fork
- 95
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của Novage/wt-tracker
-
Publish on `npm`Đang mởenhancement
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
Novage/wt-tracker#39 ·
-
Improve error messagesĐang mởenhancement
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 20/100
Novage/wt-tracker#11 ·
-
documentation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 35/100
Novage/wt-tracker#10 · 27 bình luận ·
Tất cả issue của Novage/wt-tracker
Issue tương tự
-
awaiting-final-review request-icon
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 70/100
homebridge/plugins#1376 · 1 bình luận ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
mindfold-ai/Trellis#672 ·
-
p1 state:active track
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
StellarCanary/ProtocolCanary-Action#698 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
pear-devs/pear-desktop#4839 ·
Maintainer thường phản hồi trong vòng 1 ngày