Add upload email notifications with Seafile direct-upload watcher; v2.0.6

- Portal uploads send one email immediately (host, episode, passage,
  description, filenames) via Resend to NUGGETS_NOTIFY_EMAIL
- Seafile watcher polls /Episode Upload every 15 min for direct uploads
  and sends a notification for any new file not already seen via portal
- Files uploaded through the portal are marked seen so the watcher
  never sends a duplicate notification
- Credentials kept out of git: SEAFILE_TOKEN, SEAFILE_NUGGETS_REPO_ID,
  NUGGETS_NOTIFY_EMAIL now sourced from docker .env file

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
nmemmertandClaude Sonnet 4.6 committed 2026-09-08 13:54:46 -04:00
1 parent 6a03813914
commit 1e396644a9
7 files changed
+177 -5

No files matched your search

+5 -4
View File
@@ -11,11 +11,12 @@ services:
- ADMIN_PASSWORD=`generate a random password and set it here`
- RESEND_API_KEY=`set your Resend API key here`
# Seafile integration for Nuggets host upload portal
# Get SEAFILE_TOKEN from: Seafile → Profile → Settings → API Token → Generate
# Get SEAFILE_NUGGETS_REPO_ID from the URL when viewing the Nuggets library in Seafile
# Set SEAFILE_TOKEN and SEAFILE_NUGGETS_REPO_ID in a .env file alongside this compose file
- SEAFILE_URL=https://seafile.necloud.us
- SEAFILE_TOKEN=your_seafile_api_token_here
- SEAFILE_NUGGETS_REPO_ID=your_repo_id_here
- SEAFILE_TOKEN=${SEAFILE_TOKEN}
- SEAFILE_NUGGETS_REPO_ID=${SEAFILE_NUGGETS_REPO_ID}
# Upload notification email (defaults to RESEND_TO if not set)
- NUGGETS_NOTIFY_EMAIL=${NUGGETS_NOTIFY_EMAIL}
volumes:
- /media/ZimaOS-HD/AppData/siteforge/data:/app/data
restart: unless-stopped