[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 -1
View File
@@ -119,7 +119,10 @@ pub struct Shared {
}
fn same_listeners(a: &Runtime, b: &Runtime) -> Result<(), EdgeError> {
if a.cfg.http_listen != b.cfg.http_listen || a.cfg.https_listen != b.cfg.https_listen {
if a.cfg.http_listen != b.cfg.http_listen
|| a.cfg.https_listen != b.cfg.https_listen
|| a.cfg.proxy_socket != b.cfg.proxy_socket
{
return Err(EdgeError::Config {
path: PathBuf::from("<new config>"),
message: "the listen addresses can only change with a restart".into(),