nginx: get rid of some logging and fix hopglass build
This commit is contained in:
parent
c515a46692
commit
eb46df56d2
3 changed files with 12 additions and 1 deletions
|
@ -14,6 +14,7 @@
|
|||
./variables.nix
|
||||
./mailserver.nix
|
||||
./borgbackup.nix
|
||||
./nginx.nix
|
||||
./hopglass-frontend.nix
|
||||
];
|
||||
|
||||
|
|
10
nginx.nix
Normal file
10
nginx.nix
Normal file
|
@ -0,0 +1,10 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
services.nginx = {
|
||||
logError = "/dev/null";
|
||||
appendConfig = ''
|
||||
access_log off;
|
||||
'';
|
||||
};
|
||||
}
|
|
@ -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 = ''
|
||||
|
|
Loading…
Reference in a new issue