summary refs log tree commit diff
path: root/machines/lapin/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'machines/lapin/default.nix')
-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;
+      '';
     };
   };