Skip to main content

Module config

Module config 

Source

Structs§

AllowedOrigin
An origin allow-list rule: a source address and the protocols permitted for it.

Functions§

load_allowed_origins
Load the origin allow-list from a file (--origins). Each line defines one rule: src_addr, protocol[, protocol…]
load_worker_config
Load the worker configuration from a file. This provides a static mapping of hostnames to worker IDs. Formats the file as follows: hostname,id