Files
nixy/server-modules/adguardhome.nix
Hadi d9337db684 adguard + glance
Former-commit-id: bb0f6279fd
2025-03-19 18:15:42 +01:00

20 lines
374 B
Nix

{ config, ... }:
let domain = "adguard.hadi.diy";
in {
services = {
adguardhome = {
enable = true;
port = 3000;
};
nginx.virtualHosts."${domain}" = {
useACMEHost = "hadi.diy";
forceSSL = true;
locations."/" = {
proxyPass =
"http://127.0.0.1:${toString config.services.adguardhome.port}";
};
};
};
}