about summary refs log tree commit diff
path: root/hosts/carmel/services.nix
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2023-04-06 18:05:12 -0700
committerFranck Cuny <franck@fcuny.net>2023-04-06 19:21:22 -0700
commit66a9af1907ea2cca4cbc808153a6c2c884d53ed6 (patch)
tree7aafa3e765598c1a5017df44d7d99b09acec5aa3 /hosts/carmel/services.nix
parenthosts/carmel: run dnsmasql-to-html when leases change (diff)
downloadworld-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 '')
-rw-r--r--hosts/carmel/services.nix11
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 = ''