nginx: get rid of some logging and fix hopglass build

This commit is contained in:
Daniel Frank 2019-08-11 16:57:55 +02:00
parent c515a46692
commit eb46df56d2
Signed by: tokudan
GPG key ID: 063CCCAD04182D32
3 changed files with 12 additions and 1 deletions

View file

@ -14,6 +14,7 @@
./variables.nix
./mailserver.nix
./borgbackup.nix
./nginx.nix
./hopglass-frontend.nix
];

10
nginx.nix Normal file
View file

@ -0,0 +1,10 @@
{ config, lib, pkgs, ... }:
{
services.nginx = {
logError = "/dev/null";
appendConfig = ''
access_log off;
'';
};
}

View file

@ -30,7 +30,7 @@ yarn2nix.mkYarnPackage {
'';
distPhase = ''
cp -Rv build/* $out/
ln -s "$conf" $out/config.json
cat "$conf" > $out/config.json
'';
allowedReferences = [ "out" ];
yarnPreBuild = ''