k 3 nginx: unique server-names to silence nginx
This commit is contained in:
parent
f223287ea2
commit
806e592d3e
@ -119,7 +119,7 @@ let
|
|||||||
|
|
||||||
to-server = { server-names, listen, locations, extraConfig, ssl, ... }: ''
|
to-server = { server-names, listen, locations, extraConfig, ssl, ... }: ''
|
||||||
server {
|
server {
|
||||||
server_name ${toString server-names};
|
server_name ${toString (unique server-names)};
|
||||||
${concatMapStringsSep "\n" (x: indent "listen ${x};") listen}
|
${concatMapStringsSep "\n" (x: indent "listen ${x};") listen}
|
||||||
${optionalString ssl.enable (indent ''
|
${optionalString ssl.enable (indent ''
|
||||||
listen 443 ssl;
|
listen 443 ssl;
|
||||||
|
Loading…
Reference in New Issue
Block a user