synapse-waf 0.9.1

High-performance WAF and reverse proxy with embedded intelligence — built on Cloudflare Pingora
Documentation
1
2
3
4
5
6
7
8
9
10
11
//! Generate JSON Schema for synapse-pingora configuration.
//!
//! Run with: `cargo run --bin generate-schema > config.schema.json`

use schemars::schema_for;
use synapse_pingora::config::ConfigFile;

fn main() {
    let schema = schema_for!(ConfigFile);
    println!("{}", serde_json::to_string_pretty(&schema).unwrap());
}