aboutsummaryrefslogtreecommitdiff
path: root/packages/dnsmasq-leases-html/README.md
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2024-03-10 09:35:50 -0700
committerFranck Cuny <franck@fcuny.net>2024-03-10 09:35:50 -0700
commit3218a873291aa202dc66e3124e3b13e3d7f41966 (patch)
treeb981d59661b6813cc719298fcb8ae91d99319f5f /packages/dnsmasq-leases-html/README.md
parentinstall the zed editor (diff)
downloadinfra-3218a873291aa202dc66e3124e3b13e3d7f41966.tar.gz
delete a bunch of stuff
Diffstat (limited to '')
-rw-r--r--packages/dnsmasq-leases-html/README.md37
1 files changed, 0 insertions, 37 deletions
diff --git a/packages/dnsmasq-leases-html/README.md b/packages/dnsmasq-leases-html/README.md
deleted file mode 100644
index 2437deb..0000000
--- a/packages/dnsmasq-leases-html/README.md
+++ /dev/null
@@ -1,37 +0,0 @@
-Generates a static HTML page with a list of all the leases allocated by `dnsmasq`.
-
-A simple template written in the jinja syntax is used.
-
-The file containing the leases is expected to be at `/var/lib/dnsmasq/dnsmasq.leases`, but this can be overwritten by setting the environment variable `DNSMASQ_LEASES`.
-
-The output of the script is written to `/var/lib/dnsmasq/leases.html` by default, but the destination can be overwritten by setting the environment variable `DNSMASQ_LEASES_OUT`.
-
-The script can be executed automatically by `dnsmasq` if the configuration for `dhcp-script` is set to the path of the script. This will only be executed when a *new* lease is created or an *old* lease is deleted. To execute the script when a lease is *updated* you need to use the configuration `script-on-renewal`.
-
-A configuration looks like this:
-
-``` ini
-dhcp-script=${pkgs.tools.dnsmasq-to-html}/bin/dnsmasq-leases-html
-script-on-renewal
-```
-
-## nginx
-To serve the page with nginx, you can use the following configuration:
-
-``` nix
-services.nginx = {
- enable = true;
- virtualHosts."dnsmasq" = {
- listen = [
- {
- addr = "192.168.6.1";
- port = 8067;
- }
- ];
- locations."/" = {
- root = "/var/lib/dnsmasq";
- index = "leases.html";
- };
- };
-};
-```