feat(monitoring): more status endpoints

This commit is contained in:
arcnmx 2024-06-01 11:22:28 -07:00
parent ebfd1f5a9a
commit 23b746191f
27 changed files with 344 additions and 138 deletions

View file

@ -14,6 +14,7 @@
cfg = config.exports;
portModule = {
config,
name,
service,
...
}: {
@ -23,6 +24,17 @@
// {
default = true;
};
name = mkOption {
type = str;
default = name;
};
displayName = mkOption {
type = nullOr str;
default =
if config.name == "default" then null
else if config.ssl && (config.name == "ssl" || config.name == "https") then "SSL"
else config.name;
};
listen = mkOption {
type = enum ["wan" "lan" "int" "localhost"];
};