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 + ]; +}