From f4d631c3d1d1102cedc8cb27c634aa5853ed1ecd Mon Sep 17 00:00:00 2001 From: Sandro Date: Sun, 22 Oct 2023 21:32:50 +0200 Subject: [PATCH] nixos/nginx: document implicit default port 80 --- nixos/modules/services/web-servers/nginx/vhost-options.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/nixos/modules/services/web-servers/nginx/vhost-options.nix b/nixos/modules/services/web-servers/nginx/vhost-options.nix index c82f02ecefec..9db4c8e23025 100644 --- a/nixos/modules/services/web-servers/nginx/vhost-options.nix +++ b/nixos/modules/services/web-servers/nginx/vhost-options.nix @@ -35,7 +35,10 @@ with lib; }; port = mkOption { type = types.nullOr port; - description = lib.mdDoc "Port number."; + description = lib.mdDoc '' + Port number to listen on. + If unset and the listen address is not a socket then nginx defaults to 80. + ''; default = null; }; ssl = mkOption {