feat: torrent streaming with hls transcoding (#1)

* feat: add ffmpeg for hls streaming

* feat: torrent streaming with hls transcoding

- add nyaa.si torrent search client
- add streaming service using anacrolix/torrent
- add hls transcoding via ffmpeg for browser playback
- add watch page with episode selection
- add socks5 proxy support via TORRENT_PROXY env
- switch to modernc.org/sqlite (pure go, no cgo conflicts)
- update dockerfile with ffmpeg
This commit is contained in:
2026-04-07 13:23:08 +02:00
committed by GitHub
parent 579b194eb9
commit a25e8f1655
27 changed files with 3744 additions and 329 deletions

View File

@@ -1,4 +1,4 @@
FROM golang:1.24-bullseye AS builder
FROM golang:1.24-bookworm AS builder
WORKDIR /app
@@ -10,16 +10,24 @@ RUN go mod download
COPY . .
# Generate templ templates
RUN go run github.com/a-h/templ/cmd/templ@latest generate
# Build the server and the CLI tools
RUN go build -o main_server ./cmd/server
RUN go build -o create_user ./cmd/create-user
FROM debian:bullseye-slim
FROM debian:bookworm-slim
WORKDIR /app
# Required for sqlite
RUN apt-get update && apt-get install -y ca-certificates sqlite3 && rm -rf /var/lib/apt/lists/*
# Install ffmpeg, sqlite and ca-certificates
RUN apt-get update && apt-get install -y --no-install-recommends \
ffmpeg \
ca-certificates \
sqlite3 \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
# Create data directory for sqlite
RUN mkdir -p /app/data