mirror of
https://github.com/block/buzz.git
synced 2026-10-28 13:01:10 +00:00
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>
17 lines
342 B
Rust
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;
|