Skip to main content

start_webhook_server

Function start_webhook_server 

Source
pub async fn start_webhook_server(
    port: u16,
    secret: String,
    repo: String,
    tx: Sender<IncomingMessage>,
) -> Result<()>
Expand description

Start the webhook HTTP server.

Dedup configuration is read from the global config:

  • webhook.dedup_window_seconds (default: 7200)
  • webhook.max_seen_deliveries (default: 50000)
  • webhook.dedup_store: "memory" (default) or "file" — file-backed variant persists dedup state across restarts to {data_dir}/webhook_dedup.db.
  • webhook.dedup_path: override the file-backed path (optional).
  • webhook.dedup_metrics: "true" (default) to enable metrics; "false" to disable.