Skip to content

Commit 28aa290

Browse files
committed
nixos/h2o: add access to listen.host
1 parent dcee208 commit 28aa290

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

nixos/modules/services/web-servers/h2o/default.nix

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,9 @@ let
230230
ssl = (lib.recursiveUpdate tlsRecAttrs value.tls.extraSettings) // {
231231
inherit identity;
232232
};
233+
}
234+
// lib.optionalAttrs (value.host != null) {
235+
host = value.host;
233236
};
234237
};
235238
};

nixos/modules/services/web-servers/h2o/vhost-options.nix

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,15 @@ in
3737
'';
3838
};
3939

40+
host = mkOption {
41+
type = types.nullOr types.nonEmptyStr;
42+
default = null;
43+
example = "127.0.0.1";
44+
description = ''
45+
Set the host address for this virtual host.
46+
'';
47+
};
48+
4049
http = mkOption {
4150
type = types.nullOr (
4251
types.submodule {

0 commit comments

Comments
 (0)