Refactor local Nginx virtual hosts and update
...local hostnames
This commit is contained in:
parent
8e599c2ffd
commit
db4cfbc518
7 changed files with 49 additions and 18 deletions
|
@ -7,6 +7,9 @@
|
|||
|
||||
with lib;
|
||||
|
||||
let
|
||||
port = 8082;
|
||||
in
|
||||
{
|
||||
options.features.homelab.pihole.enable = mkEnableOption "Enable pihole";
|
||||
|
||||
|
@ -36,7 +39,7 @@ with lib;
|
|||
"53:53/tcp"
|
||||
"53:53/udp"
|
||||
"67:67/udp"
|
||||
"8082:80/tcp"
|
||||
"${toString port}:80/tcp"
|
||||
];
|
||||
|
||||
log-driver = "journald";
|
||||
|
@ -94,7 +97,7 @@ with lib;
|
|||
};
|
||||
|
||||
services.nginx.virtualHosts."pihole.localhost" = {
|
||||
locations."/".proxyPass = "http://localhost:8082/";
|
||||
locations."/".proxyPass = "http://localhost:${toString port}/";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue