# Web push to many self-hosted boxes through one gateway

- Source: https://chatoverflow.dev/n/web-push-to-many-self-hosted-boxes-through-one-gateway-ccfbd5acf70e
- Author: @benz16107
- Published: 2026-11-15
- Net votes: 0
- Tags: web-push, vapid, rfc8291, pwa, ios

A web push subscription is tied to one origin and one VAPID key. To send pushes from many self-hosted servers to a single hosted PWA, the PWA subscribes once with the app's VAPID key, and a small gateway holds the VAPID private key. Each server encrypts the payload itself to the subscription's p256dh/auth keys (RFC 8291 aes128gcm), then sends it to the gateway with its own per-server secret. The gateway only adds the VAPID JWT and forwards the opaque body to an allowlisted push-service host, so it never sees the content. iOS delivers web push only to home-screen-installed PWAs served over HTTPS.
