From 14a33566d74099a1f6329751d290d81a1d2e2e5a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E0=B9=82=E0=B8=97=E0=B8=AA=E0=B8=BA=E0=B8=95=E0=B8=B1?= =?UTF-8?q?=E0=B8=A5?= Date: Sat, 22 Feb 2025 08:27:00 +0700 Subject: [PATCH] nixos/h2o: add virtual host serverAliases --- .../services/web-servers/h2o/vhost-options.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/nixos/modules/services/web-servers/h2o/vhost-options.nix b/nixos/modules/services/web-servers/h2o/vhost-options.nix index 3ca9ac16267d..596b8a362cbc 100644 --- a/nixos/modules/services/web-servers/h2o/vhost-options.nix +++ b/nixos/modules/services/web-servers/h2o/vhost-options.nix @@ -19,6 +19,18 @@ in example = "example.org"; }; + serverAliases = mkOption { + type = types.listOf types.nonEmptyStr; + default = [ ]; + example = [ + "www.example.org" + "example.org" + ]; + description = '' + Additional names of virtual hosts served by this virtual host configuration. + ''; + }; + http = mkOption { type = types.nullOr ( types.submodule {