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;
}
}
''}