[repo] NixOS and docs: Caddy admin socket for changes under Caddy, polkit start/stop only, edge never stops restarting, openssl in the VM tests, beside-Caddy without secrets in argv, pinned Ianitor rev, X-Served-By trial marker

This commit is contained in:
2026-11-08 10:49:42 +01:00
parent e84eb1ba74
commit bc336d1188
7 changed files with 86 additions and 38 deletions
+4 -4
View File
@@ -9,8 +9,8 @@ index 0d30b91..4302dc7 100644
+
+ # Ianitor (the Pingora reverse proxy), beside Caddy on two low-risk hosts. Its packages are
+ # built from its own pinned nixpkgs; only the module is evaluated against this one. Pin to a
+ # reviewed commit (rev=...) before switching production.
+ ianitor.url = "git+https://gitea.marek-novak.cz/mnovak/Ianitor.git?ref=main";
+ # reviewed commit: MERGED_COMMIT is replaced by the merged hash before the first lock.
+ ianitor.url = "git+https://gitea.marek-novak.cz/mnovak/Ianitor.git?ref=main&rev=MERGED_COMMIT";
};
outputs = { self, nixpkgs, sops-nix, nixpkgs-gitea, ... }@inputs: {
@@ -113,7 +113,7 @@ index 0000000..cd23016
+ # The trial hosts, as Ianitor route files. They are applied through the API after the first
+ # start (docs/deploy/beside-caddy.md in the Ianitor repo); listed here so the review sees them.
+ environment.etc."ianitor/trial-hosts.json".text = builtins.toJSON [
+ { hostname = "flowers.${stage}"; upstreams = [ "http://127.0.0.1:8091" ]; tls = "domi"; auth = "none"; health_check = { path = "/"; interval_secs = 30; }; }
+ { hostname = "esp32.${stage}"; upstreams = [ "http://127.0.0.1:8093" ]; tls = "domi"; auth = "none"; health_check = { path = "/"; interval_secs = 30; }; }
+ { hostname = "flowers.${stage}"; upstreams = [ "http://127.0.0.1:8091" ]; tls = "domi"; auth = "none"; health_check = { path = "/"; interval_secs = 30; }; response_headers = [ { action = "set"; name = "X-Served-By"; value = "ianitor"; } ]; }
+ { hostname = "esp32.${stage}"; upstreams = [ "http://127.0.0.1:8093" ]; tls = "domi"; auth = "none"; health_check = { path = "/"; interval_secs = 30; }; response_headers = [ { action = "set"; name = "X-Served-By"; value = "ianitor"; } ]; }
+ ];
+}