about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
Diffstat (limited to 'nixos')
-rw-r--r--nixos/kanata/configuration.nix24
1 files changed, 24 insertions, 0 deletions
diff --git a/nixos/kanata/configuration.nix b/nixos/kanata/configuration.nix
index 9e3f330..a5ed1be 100644
--- a/nixos/kanata/configuration.nix
+++ b/nixos/kanata/configuration.nix
@@ -159,6 +159,7 @@ in
         "cache.kusanari.network".to = "http://localhost:4005";
         "torrent.kusanari.network".to = "http://localhost:4006";
         "paperless.kusanari.network".to = "http://localhost:4007";
+        "change.labs.kusanari.network".to = "http://localhost:4901";
 
         # Nginx pre-configured routes
         "nextcloud.kusanari.network" = {
@@ -284,6 +285,29 @@ in
     };
   };
 
+  services.changedetection-io = {
+    enable = true;
+
+    listenAddress = "localhost";
+    port = 4901;
+
+    baseURL = "https://change.labs.kusanari.network";
+    behindProxy = true;
+    webDriverSupport = true;
+  };
+
+  services.nginx.virtualHosts."change.labs.kusanari.network".locations."/" = {
+    proxyWebsockets = true;
+    extraConfig = ''
+      proxy_redirect off;
+      proxy_set_header Host $host;
+      proxy_set_header X-Real-IP $remote_addr;
+      proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
+      proxy_set_header X-Forwarded-Proto $scheme;
+      proxy_set_header Referer "https://change.labs.kusanari.network";
+    '';
+  };
+
   containers.v-interlink = {
     autoStart = true;
     enableTun = true;