[control] Fix round 1: changes apply while Caddy serves (admin socket, watch through Caddy), revocations that fail are errors and catch up, proof only on the forward-auth UI host, root keys found by content, intermediates checked before install, stale SNI cleared before each handshake
This commit is contained in:
@@ -26,9 +26,13 @@ pub(super) fn compile(model: &Model, o: &CompileOptions) -> Value {
|
||||
|
||||
root.insert(
|
||||
"admin".into(),
|
||||
match o.caddy_admin {
|
||||
Some(addr) => json!({ "listen": addr.to_string() }),
|
||||
None => json!({ "disabled": true }),
|
||||
match (&o.caddy_admin_socket, o.caddy_admin) {
|
||||
// Only the ianitor group (control) can reach it; no TCP port for local processes.
|
||||
(Some(s), _) => {
|
||||
json!({ "listen": format!("unix//{}|0660", s.trim_start_matches('/')) })
|
||||
}
|
||||
(None, Some(addr)) => json!({ "listen": addr.to_string() }),
|
||||
(None, None) => json!({ "disabled": true }),
|
||||
},
|
||||
);
|
||||
root.insert(
|
||||
|
||||
Reference in New Issue
Block a user