diff --git a/docs/config.md b/docs/config.md index 4908600..2b1119c 100644 --- a/docs/config.md +++ b/docs/config.md @@ -215,9 +215,9 @@ | Variable | Type | Default | Description | |---|---|---|---| -| `NAVI_VAPID_PUBLIC_KEY` | str | `""` | VAPID public key for web push. Empty = push fully disabled (endpoints 503, no notifications sent). | -| `NAVI_VAPID_PRIVATE_KEY` | str | `""` | VAPID private key. Generate the pair once: `pip install py_vapid && python -m py_vapid gen`. | -| `NAVI_VAPID_SUBJECT` | str | `mailto:admin@navi.local` | Contact for the push service (a `mailto:` or `https:` URL). | +| `NAVI_PUSH_VAPID_PUBLIC_KEY` | str | `""` | VAPID public key for web push. Empty = push fully disabled (endpoints 503, no notifications sent). | +| `NAVI_PUSH_VAPID_PRIVATE_KEY` | str | `""` | VAPID private key. Generate the pair once: `pip install py_vapid && python -m py_vapid gen`. | +| `NAVI_PUSH_VAPID_SUBJECT` | str | `mailto:admin@navi.local` | Contact for the push service (a `mailto:` or `https:` URL). | | `NAVI_PUSH_COOLDOWN_SEC` | int | `30` | Minimum seconds between two pushes for the same session. | Push notifications fire when an agent turn (or a scheduled recall) completes and no diff --git a/docs/push.md b/docs/push.md index 6b19dab..ed0dab5 100644 --- a/docs/push.md +++ b/docs/push.md @@ -87,7 +87,7 @@ ### Configuration -`NAVI_VAPID_PUBLIC_KEY` / `NAVI_VAPID_PRIVATE_KEY` / `NAVI_VAPID_SUBJECT` / +`NAVI_PUSH_VAPID_PUBLIC_KEY` / `NAVI_PUSH_VAPID_PRIVATE_KEY` / `NAVI_PUSH_VAPID_SUBJECT` / `NAVI_PUSH_COOLDOWN_SEC` — see [`config.md`](config.md). Generate the VAPID pair once with `pip install py_vapid && python -m py_vapid gen`. Empty keys = push disabled everywhere (client panel shows the toggle as unavailable). diff --git a/navi/push/__init__.py b/navi/push/__init__.py index 9e616ec..bb59024 100644 --- a/navi/push/__init__.py +++ b/navi/push/__init__.py @@ -1,6 +1,6 @@ """Web push (PWA) — subscription storage and turn-completion notifications. -Optional integration: with NAVI_VAPID_PUBLIC_KEY/NAVI_VAPID_PRIVATE_KEY empty +Optional integration: with NAVI_PUSH_VAPID_PUBLIC_KEY/NAVI_PUSH_VAPID_PRIVATE_KEY empty the service is disabled and behaves as a no-op everywhere. """