commit 3270e77c5532f56cdf381411e9c2b58f78a6248f
parent b223343de28815c28bf5e4492e8a26602f418f2e
Author: breadcat <breadcat@users.noreply.github.com>
Date: Mon, 16 Mar 2026 19:20:03 +0000
Add instructions and remove unnecessary port from local Caddy listen address
Diffstat:
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/common/roles/caddy-ilias.nix b/common/roles/caddy-ilias.nix
@@ -1,5 +1,11 @@
{ config, lib, pkgs, ... }:
+# OpenWRT setup for custom LAN domain names:
+# uci add_list dhcp.@dnsmasq[0].rebind_domain='lan'
+# uci add_list dhcp.@dnsmasq[0].address='/example.lan/192.168.1.3'
+# uci commit dhcp
+# service dnsmasq restart
+
let
services = {
music = { host = "127.0.0.1"; port = 4533; };
@@ -20,7 +26,7 @@ in
services.caddy = {
enable = true;
virtualHosts = (lib.mapAttrs' mkVirtualHost services) // {
- "http://192.168.1.3:80" = {
+ "http://192.168.1.3" = {
extraConfig = ''
reverse_proxy 127.0.0.1:8080
'';