From de045561915fd3f203c50e2433ef3d7c4c72ad02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Yule=20B=C3=A4dorf?= Date: Sun, 25 Feb 2024 16:44:01 +0100 Subject: [PATCH] nginx/miom: disable logging --- hosts/nachtigall/apps/nginx-website-miom.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/hosts/nachtigall/apps/nginx-website-miom.nix b/hosts/nachtigall/apps/nginx-website-miom.nix index 8d5fe61..126886d 100644 --- a/hosts/nachtigall/apps/nginx-website-miom.nix +++ b/hosts/nachtigall/apps/nginx-website-miom.nix @@ -9,6 +9,12 @@ "www.miom.space" = { enableACME = true; addSSL = true; + + extraConfig = '' + error_log /dev/null; + access_log /dev/null; + ''; + locations."/" = { extraConfig = '' return 301 https://miom.space$request_uri; @@ -21,6 +27,11 @@ enableACME = true; forceSSL = true; + extraConfig = '' + error_log /dev/null; + access_log /dev/null; + ''; + locations = { "/" = { root = "/srv/www/miom.space";