1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-02-16 07:48:58 +00:00

nginx service: Add missing port toString conversion (#20252)

This commit is contained in:
Philipp Hausmann 2016-11-08 13:34:04 +01:00 committed by Robin Gloster
parent 9cdfb33401
commit 632282300a

View file

@ -138,7 +138,7 @@ let
server_name ${serverName} ${concatStringsSep " " vhost.serverAliases};
${acmeLocation}
location / {
return 301 https://$host${optionalString (port != 443) ":${port}"}$request_uri;
return 301 https://$host${optionalString (port != 443) ":${toString port}"}$request_uri;
}
}
''}