diff options
author | lassulus <lass@aidsballs.de> | 2016-06-01 00:07:14 +0200 |
---|---|---|
committer | lassulus <lass@aidsballs.de> | 2016-06-01 00:07:14 +0200 |
commit | 806e592d3e67defff6d626ef3b48647d1a4c28cf (patch) | |
tree | 5f67231a2b3348dc78958904333617b8f53d9745 /krebs/3modules/nginx.nix | |
parent | f223287ea2c8bde42e04d477e1bcb160f4448304 (diff) |
k 3 nginx: unique server-names to silence nginx
Diffstat (limited to 'krebs/3modules/nginx.nix')
-rw-r--r-- | krebs/3modules/nginx.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/krebs/3modules/nginx.nix b/krebs/3modules/nginx.nix index 6af93a570..fc7fcca6f 100644 --- a/krebs/3modules/nginx.nix +++ b/krebs/3modules/nginx.nix @@ -119,7 +119,7 @@ let to-server = { server-names, listen, locations, extraConfig, ssl, ... }: '' server { - server_name ${toString server-names}; + server_name ${toString (unique server-names)}; ${concatMapStringsSep "\n" (x: indent "listen ${x};") listen} ${optionalString ssl.enable (indent '' listen 443 ssl; |