From eb46df56d2dc3867ebb726981d3064ee3e7d253a Mon Sep 17 00:00:00 2001 From: Daniel Frank Date: Sun, 11 Aug 2019 16:57:55 +0200 Subject: [PATCH] nginx: get rid of some logging and fix hopglass build --- configuration.nix | 1 + nginx.nix | 10 ++++++++++ pkg-hopglass-fe.nix | 2 +- 3 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 nginx.nix 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 = ''