From ee550f58b75d827d104c7834d90d79d09a6cf7e3 Mon Sep 17 00:00:00 2001 From: Crony Akatsuki Date: Sat, 10 May 2025 07:27:11 +0200 Subject: [PATCH] feat(thor): add changedetection.io --- modules/servers/thor/changedetection-io.nix | 25 +++++++++++++++++++++ modules/servers/thor/default.nix | 6 ++++- 2 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 modules/servers/thor/changedetection-io.nix diff --git a/modules/servers/thor/changedetection-io.nix b/modules/servers/thor/changedetection-io.nix new file mode 100644 index 0000000..929af56 --- /dev/null +++ b/modules/servers/thor/changedetection-io.nix @@ -0,0 +1,25 @@ +{...}: { + services.changedetection-io = { + enable = true; + playwrightSupport = true; + baseURL = "https://changedetection.cronyakatsuki.xyz"; + behindProxy = true; + }; + + services.traefik.dynamicConfigOptions.http = { + services.changedetection.loadBalancer.servers = [ + { + url = "http://localhost:5000"; + } + ]; + + routers.changedetection = { + rule = "Host(`changedetection.cronyakatsuki.xyz`)"; + tls = { + certResolver = "porkbun"; + }; + service = "changedetection"; + entrypoints = "websecure"; + }; + }; +} diff --git a/modules/servers/thor/default.nix b/modules/servers/thor/default.nix index 6462967..52c342a 100644 --- a/modules/servers/thor/default.nix +++ b/modules/servers/thor/default.nix @@ -1 +1,5 @@ -{...}: {} +{...}: { + imports = [ + ./changedetection-io.nix + ]; +}