Files
hermes 913759918b
smoke / hello (push) Successful in 2s
build-and-publish / publish (push) Successful in 14s
Optional Firecrawl scraping of the full featured article
Add FIRECRAWL_API_URL / FIRECRAWL_API_KEY env config. When the URL is
set, the featured-article page is scraped through Firecrawl (main
content only) and the richer text replaces the short feed extract,
still capped at 4000 chars. Unset URL or any scrape failure falls
back to the original REST-feed extract behaviour automatically.

Also wire SLOW_RETRY_MINUTES through docker-compose (was missing).
2026-10-11 09:40:16 +00:00

34 lines
1.2 KiB
Bash

# Copy to .env and adjust. docker compose reads this automatically.
# Any OpenAI-compatible endpoint. Use the LAN address from the minisforum —
# the public URL hairpins through the router and can stall.
OPENAI_BASE_URL=http://minisforum:65000/v1
OPENAI_MODEL=halogen-qwen3.8-flash-next
OPENAI_API_KEY=***
# Daily generation time (in TZ below)
GENERATE_HOUR=6
GENERATE_MINUTE=0
# Failure handling: retry every RETRY_MINUTES, up to MAX_ATTEMPTS per day.
# After that, retries pause for SLOW_RETRY_MINUTES, then resume (so a cold
# LLM endpoint at 06:00 doesn't kill the whole day).
MAX_ATTEMPTS=3
RETRY_MINUTES=15
SLOW_RETRY_MINUTES=60
# Wikipedia language for the featured-article feed
WIKIPEDIA_LANG=en
# Optional: require ?token=<value> (or header trmnl-token: <value>) on
# /trmnl.json so only your TRMNL device can poll it. Empty = open (public jokes).
TRMNL_TOKEN=
# Optional: scrape the full featured-article page through Firecrawl for
# richer joke material. Leave FIRECRAWL_API_URL empty (or unset) to keep
# the default behaviour (short extract from the Wikipedia REST feed).
# If Firecrawl is configured but fails, the app falls back to the feed
# extract automatically.
FIRECRAWL_API_URL=https://firecrawl.obahan.xyz
FIRECRAWL_API_KEY=