mirror of
https://github.com/xCyanGrizzly/DragonsStash.git
synced 2026-05-11 06:11:15 +00:00
Adds full Telegram ZIP ingestion pipeline: TDLib worker service scans source channels for archive files, deduplicates by content hash, extracts metadata, uploads to archive channel, and indexes in Postgres. Forum supergroups are scanned per-topic with topic names used as creator. Filename-based creator extraction (e.g. "Mammoth Factory - 2026-01.zip") serves as fallback. Includes admin UI for managing accounts/channels, simplified account setup (API credentials via env vars), auth code/password submission dialog, package browser with creator column, and live ingestion activity tracking. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
25 lines
584 B
Plaintext
25 lines
584 B
Plaintext
# Database
|
|
DATABASE_URL="postgresql://dragons:stash@localhost:5432/dragonsstash?schema=public"
|
|
|
|
# Auth.js
|
|
AUTH_SECRET="generate-with-openssl-rand-base64-32"
|
|
AUTH_TRUST_HOST=true
|
|
|
|
# GitHub OAuth (optional)
|
|
AUTH_GITHUB_ID=""
|
|
AUTH_GITHUB_SECRET=""
|
|
|
|
# App
|
|
NEXT_PUBLIC_APP_URL="http://localhost:3000"
|
|
|
|
# Telegram integration (get from https://my.telegram.org/apps)
|
|
TELEGRAM_API_ID=""
|
|
TELEGRAM_API_HASH=""
|
|
|
|
# Worker (only needed when running worker container)
|
|
WORKER_INTERVAL_MINUTES=60
|
|
WORKER_TEMP_DIR="/tmp/zips"
|
|
TDLIB_STATE_DIR="/data/tdlib"
|
|
WORKER_MAX_ZIP_SIZE_MB=4096
|
|
LOG_LEVEL="info"
|