[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:
@@ -41,6 +41,7 @@ let
|
||||
state_dir = "${stateRoot}/edge-state";
|
||||
access_log = "/var/log/ianitor/access.log";
|
||||
caddy_credentials_dir = "/run/credentials/caddy-fallback.service";
|
||||
trusted_proxies = cfg.edge.trustedProxies;
|
||||
};
|
||||
|
||||
controlToml = toml.generate "control.toml" (
|
||||
@@ -146,6 +147,12 @@ in
|
||||
default = false;
|
||||
description = "Open edge's two ports in the firewall.";
|
||||
};
|
||||
trustedProxies = mkOption {
|
||||
type = types.listOf types.str;
|
||||
default = [ ];
|
||||
example = [ "127.0.0.1" ];
|
||||
description = "Proxies in front of edge whose X-Forwarded-For names the client (beside Caddy: 127.0.0.1), for the share-link throttle and the access log. Off by default.";
|
||||
};
|
||||
};
|
||||
|
||||
control.listen = mkOption {
|
||||
|
||||
Reference in New Issue
Block a user