From 7cd1fc1f58b05c54ecab06be4b908b6a14a69425 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Fri, 8 Apr 2022 23:41:48 +0200 Subject: vidhar: ... --- hosts/vidhar/default.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/hosts/vidhar/default.nix b/hosts/vidhar/default.nix index f9b021d3..69ca1403 100644 --- a/hosts/vidhar/default.nix +++ b/hosts/vidhar/default.nix @@ -122,6 +122,15 @@ recommendedTlsSettings = true; commonHttpConfig = '' ssl_ecdh_curve X25519:prime256v1:secp521r1:secp384r1; + + log_format main + '$remote_addr "$remote_user" ' + '"$host" "$request" $status $bytes_sent ' + '"$http_referer" "$http_user_agent" ' + '$gzip_ratio'; + + access_log syslog:server=unix:/dev/log main; + error_log syslog:server=unix:/dev/log info; ''; upstreams.grafana = { servers = { "unix:${config.services.grafana.socket}" = {}; }; -- cgit v1.2.3