nixos/h2o: add access to listen.host

This commit is contained in:
โทสฺตัล
2025-03-02 15:57:09 +07:00
parent dcee208a31
commit 28aa290145
2 changed files with 12 additions and 0 deletions
@@ -230,6 +230,9 @@ let
ssl = (lib.recursiveUpdate tlsRecAttrs value.tls.extraSettings) // {
inherit identity;
};
}
// lib.optionalAttrs (value.host != null) {
host = value.host;
};
};
};
@@ -37,6 +37,15 @@ in
'';
};
host = mkOption {
type = types.nullOr types.nonEmptyStr;
default = null;
example = "127.0.0.1";
description = ''
Set the host address for this virtual host.
'';
};
http = mkOption {
type = types.nullOr (
types.submodule {