Files
buzz/crates/buzz-push-gateway/src/lib.rs
Tom Brow 781d39510c feat(push): support configurable HTTP(S) delivery URLs (#7877)
The relay can use a configurable HTTP(S) gateway delivery URL and signs
the same URL it sends. The gateway verifies NIP-98 against the received
request URL, including authority, port, path and query. App Attest,
scoped grants, replay checks and delivery quotas are unchanged.

Forwarding proxies must preserve Host and supply the original request
scheme through X-Forwarded-Proto. The NIP relay-delivery wording now
defines the configured HTTP(S) URL as the signed URL and labels the
public URL as an example.

<!-- buzz-review-completed -->

---------

Signed-off-by: Tom Brow <tomb@block.xyz>
2026-09-25 18:57:49 -07:00

17 lines
342 B
Rust

//! Stateful, capability-gated APNs last hop for NIP-PL.
pub mod apns;
pub mod app_attest;
pub mod authority;
pub mod config;
pub mod grant;
pub mod http;
pub mod metrics;
pub mod model;
pub mod postgres;
pub(crate) mod strict_json;
pub mod token;
pub use http::{router, router_with_metrics, AppState};
#[cfg(test)]
mod http_delivery_tests;