Files
simonandClaude Opus 5.5 256906e9fe Prepare for going public: legal pages, corrections contact, portrait proxy
/impressum and /datenschutz read the operator's details from the environment
so they stay out of this repository, and show a visible notice until set.
Portraits go through an allowlisted /api/img so visitors' IPs stay with us.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 01:22:02 +01:00

53 lines
2.0 KiB
Bash

# Copy to .env and adjust.
# Where persistent data lives. On Unraid: /mnt/user/appdata/politrack
# (Not named APPDATA: Windows already sets that variable, and shell variables override this file.)
DATA_DIR=./data
POSTGRES_PASSWORD=change-me
# Password for the read-only `politrack_reader` role (for agents, BI tools, notebooks).
POLITRACK_READER_PASSWORD=change-me-too
# Identify the crawler honestly: put a URL describing the project and a contact address.
POLITRACK_USER_AGENT=PolitrackBot/0.1 (+https://example.org/about; contact: you@example.org)
POLITRACK_MIN_REQUEST_INTERVAL=2.0
# Shown on /impressum and /datenschutz. Required before the site goes public (§ 5 ECG, §§ 24, 25 MedienG).
# POLITRACK_LEGAL_NAME=
# POLITRACK_LEGAL_ADDRESS=
# POLITRACK_LEGAL_EMAIL=
# Defaults to POLITRACK_LEGAL_EMAIL.
# POLITRACK_CORRECTIONS_EMAIL=
# Legislative periods of the Austrian parliament to ingest in detail (JSON list).
POLITRACK_PARLAMENT_PERIODS=["XXVII","XXVIII"]
# Optional: semantic search via Ollama (model bge-m3, 1024 dims).
# POLITRACK_OLLAMA_URL=http://ollama:11434
POLITRACK_EMBEDDING_MODEL=bge-m3
POLITRACK_API_CORS_ORIGINS=["http://localhost:3000"]
# Moderation endpoints (/api/v1/review, /api/v1/admin/runs). Leave empty to moderate via the CLI only.
# POLITRACK_ADMIN_TOKEN=
# Raw-response archive inside the containers (mounted from ${DATA_DIR}/raw by docker-compose.yml).
POLITRACK_RAW_DIR=/data/raw
# Bulk sources: how far back the first run backfills.
POLITRACK_PROCUREMENT_SINCE=2024-01-01
POLITRACK_AD_ARCHIVE_SINCE=2023-01-01
# Optional credentials. Adapters that need them skip themselves when unset.
# YouTube Data API v3 key (free quota): https://console.cloud.google.com/apis/library/youtube.googleapis.com
# POLITRACK_YOUTUBE_API_KEY=
# Meta Ad Library API token (requires identity confirmation): https://www.facebook.com/ads/library/api
# POLITRACK_META_AD_LIBRARY_TOKEN=
# X API v2 bearer token (paid tier with read access). Without it no X posts are collected.
# POLITRACK_X_BEARER_TOKEN=
API_PORT=8000
MCP_PORT=8001
WEB_PORT=3000
DB_PORT=5433