Server: add changedetection-io

This commit is contained in:
Toast 2024-12-12 10:26:31 +01:00
parent 2d4374899c
commit 3733eb8b3a
2 changed files with 32 additions and 0 deletions

View file

@ -0,0 +1,31 @@
{...}: {
services.changedetection-io = {
enable = true;
baseURL = "changedetection.everest.tailscale";
behindProxy = true;
playwrightSupport = true;
};
systemd.services.changedetection-io.serviceConfig.Environment = [
"HIDE_REFERER=false"
];
# Add a record for changedetection-io
services.headscale.settings.dns.extra_records = [
{
name = "changedetection.everest.tailscale";
type = "A";
value = "100.100.0.1";
}
];
# Set up caddy as the reverse proxy for changedetection-io
services.caddy.virtualHosts.changedetection-io = {
hostName = "changedetection.everest.tailscale";
extraConfig = ''
import tailscale
reverse_proxy localhost:5000 {
header_up Referer {header.Referer}
}
'';
};
}

View file

@ -16,5 +16,6 @@
./rust_motd.nix
./minecraft.nix
./adguard.nix
./changedetection-io.nix
];
}