[docs] Previews (the API for Fabrica, names, the token from the team vault), Ianitor anywhere (Linux, Docker, Windows Server in Caddy mode, NixOS), team sign-in in api.md, the Custos ticket's T4 part; release 0.2.0: the pipeline builds and tests the Linux tarball, the Windows zip and the image; the NixOS previews option; Docker and Linux smoke scripts

This commit is contained in:
2026-11-17 20:59:42 +01:00
parent d5d522fe4b
commit defd722cc2
15 changed files with 549 additions and 15 deletions
+40
View File
@@ -90,6 +90,16 @@ let
password_credential = "pki-password";
};
}
// lib.optionalAttrs (cfg.previews.domain != null) {
# Branch previews for Fabrica (T4, docs/previews.md).
previews = {
domain = cfg.previews.domain;
tls = cfg.previews.tls;
auth = cfg.previews.auth;
upstreams = cfg.previews.upstreams;
default_ttl_secs = cfg.previews.defaultTtlSeconds;
};
}
);
hardening = {
@@ -222,6 +232,36 @@ in
};
};
previews = {
domain = mkOption {
type = types.nullOr types.str;
default = null;
example = "preview.example.org";
description = "Branch previews for Fabrica live under this domain (`<branch>--<project>.<domain>`); a wildcard DNS record must point here. Null: previews are off.";
};
tls = mkOption {
type = types.enum [ "domi" "letsencrypt" ];
default = "domi";
description = "Certificates for previews: the Domi CA (internal) or Let's Encrypt (public, one certificate per preview).";
};
auth = mkOption {
type = types.enum [ "none" "forward-auth" ];
default = "forward-auth";
description = "Whether previews are behind Authelia (forward-auth) or open to anyone with the address.";
};
upstreams = mkOption {
type = types.listOf types.str;
default = [ ];
example = [ "10.0.0.0/8" "127.0.0.1:20000-29999" ];
description = "What previews may send traffic to (networks, address:port ranges, names). Control's own port and Caddy's admin are never allowed.";
};
defaultTtlSeconds = mkOption {
type = types.ints.positive;
default = 72 * 3600;
description = "How long a preview lives when Fabrica does not say.";
};
};
ui = {
hostname = mkOption {
type = types.nullOr types.str;