nginx service: use `default_server` parameter instead of `default` (#21371)

authored by tv and committed by Robin Gloster de44544c d8478c79

+3 -3
+3 -3
nixos/modules/services/web-servers/nginx/default.nix
··· 117 ssl = vhost.enableSSL || vhost.forceSSL; 118 port = if vhost.port != null then vhost.port else (if ssl then 443 else 80); 119 listenString = toString port + optionalString ssl " ssl http2" 120 - + optionalString vhost.default " default"; 121 acmeLocation = optionalString vhost.enableACME ('' 122 location /.well-known/acme-challenge { 123 ${optionalString (vhost.acmeFallbackHost != null) "try_files $uri @acme-fallback;"} ··· 133 in '' 134 ${optionalString vhost.forceSSL '' 135 server { 136 - listen 80 ${optionalString vhost.default "default"}; 137 ${optionalString enableIPv6 138 - ''listen [::]:80 ${optionalString vhost.default "default"};'' 139 } 140 141 server_name ${serverName} ${concatStringsSep " " vhost.serverAliases};
··· 117 ssl = vhost.enableSSL || vhost.forceSSL; 118 port = if vhost.port != null then vhost.port else (if ssl then 443 else 80); 119 listenString = toString port + optionalString ssl " ssl http2" 120 + + optionalString vhost.default " default_server"; 121 acmeLocation = optionalString vhost.enableACME ('' 122 location /.well-known/acme-challenge { 123 ${optionalString (vhost.acmeFallbackHost != null) "try_files $uri @acme-fallback;"} ··· 133 in '' 134 ${optionalString vhost.forceSSL '' 135 server { 136 + listen 80 ${optionalString vhost.default "default_server"}; 137 ${optionalString enableIPv6 138 + ''listen [::]:80 ${optionalString vhost.default "default_server"};'' 139 } 140 141 server_name ${serverName} ${concatStringsSep " " vhost.serverAliases};