nixos/zoneminder: Fix nginx config check

NixOS wouldn't build because the nginx config checker fails.

Location without a trailing slash "could allow an attacker to read file
stored outside the target folder.", source:
https://github.com/yandex/gixy/blob/master/docs/en/plugins/aliastraversal.md

Shouldn't change the behaviour according to
https://serverfault.com/questions/607615/using-trailing-slashes-in-nginx-configuration/607731#607731
This commit is contained in:
Daniel Schaefer 2019-06-26 20:45:55 +02:00
parent 54cbf55543
commit 19851ec1fc

View File

@ -256,7 +256,7 @@ in {
fastcgi_pass ${fcgi.socketType}:${fcgi.socketAddress}; fastcgi_pass ${fcgi.socketType}:${fcgi.socketAddress};
} }
location /cache { location /cache/ {
alias /var/cache/${dirName}; alias /var/cache/${dirName};
} }