- firmenbuch.search: register number for companies linked to people/parties, only for one current register entry with the same name - firmenbuch.extracts: current extracts; officers/shareholders who are politicians in the database (exact birth date + name, new person hint birth_date) become company_role claims; nobody else is stored, raw responses are not archived, addresses never read; the register's daily change list triggers re-extracts - enrich.firmenbuch closes roles a newer extract no longer lists - Request.data (raw body, part of the fingerprint); SOAP faults are not retried - firmenbuch_number drops leading zeros; migration 0009 adds company_role and aligns stored numbers; internal politrack_org ids are no longer stored as identifiers - company_role in API types, MCP docs, person money tab, connections, labels Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
59 lines
2.3 KiB
Bash
59 lines
2.3 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=
|
|
|
|
# Nightly database dumps (backup service). Ideally on a different disk or share than DATA_DIR.
|
|
# BACKUP_DIR=/mnt/user/backups/politrack
|
|
# BACKUP_KEEP_DAYS=14
|
|
|
|
# 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=
|
|
# JustizOnline Firmenbuch high-value-dataset web service token (free, request it at justizonline.gv.at)
|
|
# POLITRACK_JUSTIZ_HVD_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
|