Server: add changedetection-io
This commit is contained in:
parent
2d4374899c
commit
3733eb8b3a
2 changed files with 32 additions and 0 deletions
31
roles/server/changedetection-io.nix
Executable file
31
roles/server/changedetection-io.nix
Executable 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}
|
||||
}
|
||||
'';
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue