22 lines
548 B
Nix
22 lines
548 B
Nix
{ inputs, config, pkgs, lib, ... }:
|
|
|
|
{
|
|
services = {
|
|
changedetection-io = {
|
|
enable = true;
|
|
group = "hosted";
|
|
behindProxy = true;
|
|
datastorePath = "/data/changedetection";
|
|
port = lib.toInt "${config.ports.changedetection-io}";
|
|
baseURL = "https://detect.baduhai.dev";
|
|
};
|
|
|
|
nginx.virtualHosts."detect.baduhai.dev" = {
|
|
useACMEHost = "baduhai.dev";
|
|
forceSSL = true;
|
|
kTLS = true;
|
|
locations."/".proxyPass =
|
|
"http://127.0.0.1:${config.ports.changedetection-io}";
|
|
};
|
|
};
|
|
}
|