diff options
author | sefidel <contact@sefidel.net> | 2024-04-09 22:04:42 +0900 |
---|---|---|
committer | sefidel <contact@sefidel.net> | 2024-04-27 11:41:15 +0900 |
commit | a8c0b1aabcd6c65bfbf474a38d2c90547c48de79 (patch) | |
tree | 76dc8aa086f45ab9de735fd54236c558742c0e19 /nixos | |
parent | b40e80ab7aaa9de25b0d25b594f9ff4a3c8c0e96 (diff) | |
download | nixrc-a8c0b1aabcd6c65bfbf474a38d2c90547c48de79.tar.gz nixrc-a8c0b1aabcd6c65bfbf474a38d2c90547c48de79.zip |
feat(nixos/kanata): web change detection wip
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/kanata/configuration.nix | 24 |
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; |