[core] Proxy socket: compile option proxy_socket gives both engines a 0660 Unix socket for the front proxy (edge in its config, Caddy a third server with trusted_proxies_unix); listeners change only with a restart

This commit is contained in:
2026-11-10 20:59:57 +01:00
parent 4150848842
commit ffffa62999
15 changed files with 117 additions and 20 deletions
+4
View File
@@ -34,6 +34,10 @@ pub struct EdgeConfig {
/// Peers whose `X-Forwarded-For` is believed (IP addresses); empty: none.
#[serde(default, skip_serializing_if = "Vec::is_empty")]
pub trusted_proxies: Vec<String>,
/// A Unix socket (mode 0660) serving the HTTPS hosts in plain HTTP to a front proxy that
/// terminated TLS; its peer is trusted (`X-Forwarded-For` names the client).
#[serde(default, skip_serializing_if = "Option::is_none")]
pub proxy_socket: Option<String>,
/// Sorted by hostname.
pub hosts: Vec<EdgeHost>,
}