[control] QC minors: device install links open a page and download on POST (never listed), approve and install failures show on the request and the CLI waits, PBKDF2 floor, private pki dirs or an error, trusted_proxies for a proxy in front, a placeholder keeps the device allow list from being empty (Caddy refuses that)
This commit is contained in:
@@ -89,6 +89,18 @@ pub(super) fn compile(model: &Model, o: &CompileOptions) -> Value {
|
||||
}),
|
||||
);
|
||||
https.insert("protocols".into(), json!(["h1", "h2"]));
|
||||
if !o.trusted_proxies.is_empty() {
|
||||
// Like edge: X-Forwarded-For from these peers names the client (logs, `client_ip`).
|
||||
https.insert(
|
||||
"trusted_proxies".into(),
|
||||
json!({
|
||||
"source": "static",
|
||||
"ranges": o.trusted_proxies.iter().map(ToString::to_string).collect::<Vec<_>>()
|
||||
}),
|
||||
);
|
||||
https.insert("client_ip_headers".into(), json!(["X-Forwarded-For"]));
|
||||
https.insert("trusted_proxies_strict".into(), json!(1));
|
||||
}
|
||||
if !logged.is_empty() {
|
||||
let names: Map<String, Value> = logged
|
||||
.iter()
|
||||
|
||||
Reference in New Issue
Block a user