Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 4 additions & 7 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,8 @@ CLIP_MAX=6
# Host cron: for programmatic control from Admin UI, set PROJECT_ROOT to your project path on host.
# PROJECT_ROOT=/path/to/project

# ── 4. TubeArchivist metadata (optional) ─────────────────────────────────────
# When set, chunk generator fetches video metadata from TubeArchivist and extracts
# "Model - <url>" from descriptions. Requires both URL and token.
# TUBEARCHIVIST_URL=https://ta.example.com
# TUBEARCHIVIST_TOKEN=your_api_token
# If TubeArchivist returns no model, use this as the watermark text (optional).
# Test mode (/generate_chunk.sh test) uses "Sample watermark" when both are empty.
# ── 4. Video metadata (optional) ──────────────────────────────────────────────
# Metadata is auto-detected from yt-dlp .info.json files alongside videos (Pinchflat).
# Legacy TubeArchivist paths (UCxxx/video_id.mp4) are also supported via video ID extraction.
# If no .info.json is found and no model is detected, use this as the watermark text (optional).
# WATERMARK_FALLBACK=My channel
7 changes: 7 additions & 0 deletions Dockerfile.nginx
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FROM nginx:alpine

COPY nginx.conf /etc/nginx/conf.d/default.conf
COPY frontend-flutter/build/web /usr/share/nginx/html

HEALTHCHECK --interval=10s --timeout=5s --retries=3 --start-period=5s \
CMD wget -qO- http://localhost:8090/health || exit 1
14 changes: 14 additions & 0 deletions backend/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
.git
.env
.tmp
tmp
__pycache__
*.pyc
*.pyo
.DS_Store
*.log
*.db
chunks
videos
audio
data
8 changes: 5 additions & 3 deletions backend/Dockerfile.generator
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,12 @@ RUN mkdir -p /etc/fonts
COPY scripts/fonts.conf /etc/fonts/fonts.conf
ENV FONTCONFIG_FILE=/etc/fonts/fonts.conf

COPY generate_chunk.sh /generate_chunk.sh
# Copy scripts individually so changing one doesn't bust cache for others
COPY scripts/segment_tracker.py /scripts/segment_tracker.py
COPY scripts/tubearchivist_metadata.py /scripts/tubearchivist_metadata.py
COPY scripts/video_metadata.py /scripts/video_metadata.py
COPY scripts/moody.cube /scripts/moody.cube
COPY scripts/chunk-gen-entrypoint.sh /chunk-gen-entrypoint.sh
RUN chmod +x /generate_chunk.sh /scripts/segment_tracker.py /scripts/tubearchivist_metadata.py /chunk-gen-entrypoint.sh
COPY generate_chunk.sh /generate_chunk.sh
RUN chmod +x /generate_chunk.sh /scripts/segment_tracker.py /scripts/video_metadata.py /chunk-gen-entrypoint.sh

ENTRYPOINT ["/chunk-gen-entrypoint.sh"]
Loading
Loading