mirror of
https://github.com/anotherhadi/nixy.git
synced 2026-04-02 19:12:11 +02:00
20 lines
374 B
Nix
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}";
|
|
};
|
|
};
|
|
};
|
|
}
|