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