adguard + glance

This commit is contained in:
Hadi
2025-03-19 18:15:42 +01:00
parent d2d113fab5
commit bb0f6279fd
3 changed files with 125 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
{ 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}";
};
};
};
}