magpie/.env.example
Alan Weinstock a19183ae92 fix: TS build errors in cron.ts and CampaignDetail; serve at /magpie/
- cron.ts: cast split+map destructuring results to tuple types
  ([string,string,...] and [number,number]) — length guards already
  ensure these are safe; TypeScript just can't infer it from split()
- CampaignDetail: api.posts.trigger → api.posts.triggerSingle (correct name)
- .env.example: document sessions_dir + updated reddit_session_file default
- manage.sh build now produces a clean zero-warning dist
2026-05-27 15:57:15 -07:00

27 lines
804 B
Text

# Magpie — environment config
# Copy to .env and fill in values.
# Reddit credentials (for Playwright-based posting)
REDDIT_USERNAME=
REDDIT_PASSWORD=
# Path to system Chrome binary (xvfb posting)
CHROME_BIN=/usr/bin/google-chrome
# API server
API_HOST=0.0.0.0
API_PORT=8532
DEBUG=false
# Database location (default: ~/.local/share/magpie/magpie.db)
# DB_PATH=/path/to/magpie.db
# Sessions directory (multi-user layout: alan_reddit.json, cf_reddit.json, etc.)
# SESSIONS_DIR=/home/youruser/.local/share/magpie/sessions
# Default Reddit session file (backward compat; used by campaign scheduler)
# Defaults to SESSIONS_DIR/alan_reddit.json — override if your setup differs.
# REDDIT_SESSION_FILE=/home/youruser/.local/share/magpie/sessions/alan_reddit.json
# APScheduler
SCHEDULER_ENABLED=true