[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:
@@ -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>,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user