docs(osint): news-list hygiene guards and the 58f71f5b4520 pins
This commit is contained in:
parent
ff1dc24b93
commit
550bbdc61d
1 changed files with 17 additions and 2 deletions
|
|
@ -10,11 +10,11 @@ instead of a host Docker container on the Pi.
|
|||
|---|---|---|
|
||||
| `osint-db` | `forgejo…/sirius/osint-dashboard-pg:amd64-c48788d4b614-r2` | TimescaleDB 2 + PostGIS 3 on Postgres 16, `local-path` PVC `osint-pgdata` 15 Gi |
|
||||
| `osint-nats` | `forgejo…/sirius/nats:2.10` | JetStream event bus (`-js -m 8222`) |
|
||||
| `osint-app` | `forgejo…/sirius/osint-dashboard:amd64-84ea0a17b1af` | FastAPI + static HUD; runs `alembic upgrade heads` on start; single-admin auth (`app/auth.py`) — public read-only site, admin-only keys/settings/mutations |
|
||||
| `osint-app` | `forgejo…/sirius/osint-dashboard:amd64-58f71f5b4520` | FastAPI + static HUD; runs `alembic upgrade heads` on start; single-admin auth (`app/auth.py`) — public read-only site, admin-only keys/settings/mutations |
|
||||
| `osint-ingester` | same app image | RSS/GDELT/USGS/FIRMS/vessel ingest → NATS → Postgres |
|
||||
| `osint-camera-service` | same app image | public-camera discovery + snapshots (PVC `osint-camera-snapshots` 3 Gi, shared with the app) |
|
||||
| `osint-titiler` | `forgejo…/sirius/titiler:0.26.0` | SAR COG tile proxy, exposed same-origin at `/titiler` |
|
||||
| `osint-news-scraper` | `forgejo…/sirius/osint-news-scraper:amd64-c48788d4b614` | Scrapy news scraper loop |
|
||||
| `osint-news-scraper` | `forgejo…/sirius/osint-news-scraper:amd64-58f71f5b4520` | Scrapy news scraper loop |
|
||||
| `osint-news-summarizer` | `forgejo…/sirius/osint-news-summarizer:amd64-c48788d4b614` | "analyst" — Nous Portal briefs every 15 min + 23:00 recap |
|
||||
|
||||
Every workload is pinned to `kubernetes.io/hostname: siriussec` (Gateway/Envoy
|
||||
|
|
@ -94,6 +94,21 @@ origins at plain HTTP and Cilium Envoy rewrites `X-Forwarded-Proto` to `http`, s
|
|||
discarded too — verified). Leave the flag unset only if you ever serve this over
|
||||
plain http locally; browsers will not send a `Secure` cookie there.
|
||||
|
||||
## News list hygiene
|
||||
|
||||
`/api/news` orders by `articles.timestamp DESC`, so anything dated in the future
|
||||
pins the top of the feed indefinitely. Two guards (PR #52):
|
||||
|
||||
- the Scrapy pipeline drops items dated more than **2 h** ahead
|
||||
(`FUTURE_TOLERANCE` in `newsScraper/pipelines.py`), counting them under the
|
||||
`future_dated_dropped` stat and logging one INFO line per crawl;
|
||||
- `GET /api/news` additionally excludes `timestamp > now()` (keeping
|
||||
`timestamp IS NULL` rows), so rows already in the table can never resurface
|
||||
early.
|
||||
|
||||
Items with an unparseable date are still kept — the guard only fires on a date
|
||||
it can actually parse.
|
||||
|
||||
## Analyst model
|
||||
|
||||
`SUMMARY_MODEL=meituan/longcat-2.5:free` (free tier on the Nous Portal,
|
||||
|
|
|
|||
Loading…
Reference in a new issue