diff options
author | Franck Cuny <franck@fcuny.net> | 2023-04-06 18:05:12 -0700 |
---|---|---|
committer | Franck Cuny <franck@fcuny.net> | 2023-04-06 19:21:22 -0700 |
commit | 66a9af1907ea2cca4cbc808153a6c2c884d53ed6 (patch) | |
tree | 7aafa3e765598c1a5017df44d7d99b09acec5aa3 /hosts/carmel | |
parent | hosts/carmel: run dnsmasql-to-html when leases change (diff) | |
download | world-66a9af1907ea2cca4cbc808153a6c2c884d53ed6.tar.gz |
hosts/carmel: serve the leases on port 8067
Bind to the wireguard interface, and use the port 8067 (67 is the port used for DHCP requests).
Diffstat (limited to 'hosts/carmel')
-rw-r--r-- | hosts/carmel/services.nix | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/hosts/carmel/services.nix b/hosts/carmel/services.nix index d469618..57033dc 100644 --- a/hosts/carmel/services.nix +++ b/hosts/carmel/services.nix @@ -70,14 +70,17 @@ recommendedGzipSettings = true; recommendedOptimisation = true; - virtualHosts."localhost" = { + virtualHosts."dnsmasq" = { listen = [ { - addr = "127.0.0.1"; - port = 8080; + addr = "192.168.6.1"; + port = 8067; } ]; - locations."/" = { }; + locations."/" = { + root = "/var/lib/dnsmasq"; + index = "leases.html"; + }; }; streamConfig = '' |