summary refs log tree commit diff
path: root/machines/lapin
diff options
context:
space:
mode:
authorMel <einebeere@gmail.com>2024-12-23 02:59:38 +0100
committerMel <einebeere@gmail.com>2024-12-23 02:59:38 +0100
commit4b0e9071bf1043c5db168fa620137273f13aa64e (patch)
tree372eb61d6321e3dc7f30ebeeb2e5da6c1e4d7a25 /machines/lapin
parent42c35b6333fad97c48762a39c2e079c80bf7833e (diff)
downloadnetwork-4b0e9071bf1043c5db168fa620137273f13aa64e.tar.zst
network-4b0e9071bf1043c5db168fa620137273f13aa64e.zip
Add access log directives and service listings to all hosts
Signed-off-by: Mel <einebeere@gmail.com>
Diffstat (limited to 'machines/lapin')
-rw-r--r--machines/lapin/default.nix13
1 files changed, 12 insertions, 1 deletions
diff --git a/machines/lapin/default.nix b/machines/lapin/default.nix
index 4cdb9c5..f08b644 100644
--- a/machines/lapin/default.nix
+++ b/machines/lapin/default.nix
@@ -14,7 +14,10 @@
     ../../services/akkoma
   ];
 
-  foundation.monitoring.client.enable = true;
+  foundation.monitoring = {
+    client.enable = true;
+    services = [ "base" "akkoma" "pds" "conduwuit" ];
+  };
 
   age.secrets.cloudflare-dns = {
     file = ../../secrets/cloudflare-dns.age;
@@ -39,6 +42,10 @@
         proxyWebsockets = true;
         proxyPass = "http://127.0.0.1:1111";
       };
+
+      extraConfig = ''
+        access_log /var/log/nginx/akkoma.access.log json_combined;
+      '';
     };
 
     "pds.rnrd.eu" = {
@@ -50,6 +57,10 @@
         proxyWebsockets = true;
         proxyPass = "http://127.0.0.1:16419";
       };
+
+      extraConfig = ''
+        access_log /var/log/nginx/pds.access.log json_combined;
+      '';
     };
   };