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).
This commit is contained in:
1 parent
dc6057fda6
commit
913759918b
5 files changed
+117
-10
No files matched your search
@@ -32,6 +32,8 @@ docker compose up -d --build
|
||||
| `RETRY_MINUTES` | `15` | Retry interval |
|
||||
| `SLOW_RETRY_MINUTES` | `60` | Cooldown after budget exhausted, then retries resume |
|
||||
| `WIKIPEDIA_LANG` | `en` | Wikipedia language for the feed |
|
||||
| `FIRECRAWL_API_URL` | *(empty)* | Firecrawl instance URL; if set, the full featured-article page is scraped via Firecrawl for richer joke material. Unset = feed extract only (original behaviour) |
|
||||
| `FIRECRAWL_API_KEY` | *(empty)* | Firecrawl bearer token (optional) |
|
||||
| `DB_PATH` | `/data/jokes.db` | SQLite location (volume-mounted) |
|
||||
|
||||
## Endpoints
|
||||
|
||||
Reference in new issue
Block a user