From 66a9af1907ea2cca4cbc808153a6c2c884d53ed6 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Thu, 6 Apr 2023 18:05:12 -0700 Subject: 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). --- hosts/carmel/services.nix | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'hosts/carmel/services.nix') 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 = '' -- cgit 1.4.1