diff --git a/configuration.nix b/configuration.nix index be16b80..d4cdf95 100644 --- a/configuration.nix +++ b/configuration.nix @@ -14,6 +14,7 @@ ./variables.nix ./mailserver.nix ./borgbackup.nix + ./nginx.nix ./hopglass-frontend.nix ]; diff --git a/nginx.nix b/nginx.nix new file mode 100644 index 0000000..d57f0bf --- /dev/null +++ b/nginx.nix @@ -0,0 +1,10 @@ +{ config, lib, pkgs, ... }: + +{ + services.nginx = { + logError = "/dev/null"; + appendConfig = '' + access_log off; + ''; + }; +} diff --git a/pkg-hopglass-fe.nix b/pkg-hopglass-fe.nix index d7211af..25d39de 100644 --- a/pkg-hopglass-fe.nix +++ b/pkg-hopglass-fe.nix @@ -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 = ''