Merge pull request #34 from naturallaw777/copilot/make-sovran-hub-accessible

feat: LAN discovery via mDNS — serve Hub at http://sovransystemsos.local
This commit is contained in:
Sovran_Systems
2026-04-03 16:11:34 -05:00
committed by GitHub
2 changed files with 20 additions and 2 deletions

View File

@@ -28,15 +28,25 @@
}; };
# ── Networking ────────────────────────────────────────────── # ── Networking ──────────────────────────────────────────────
networking.hostName = "nixos"; networking.hostName = "sovransystemsos";
networking.networkmanager.enable = true; networking.networkmanager.enable = true;
networking.firewall.enable = true; networking.firewall.enable = true;
networking.firewall.allowedTCPPorts = [ 80 443 8448 3051 ]; networking.firewall.allowedTCPPorts = [ 80 443 8448 3051 ];
networking.firewall.allowedUDPPorts = [ 80 443 8448 3051 ]; networking.firewall.allowedUDPPorts = [ 80 443 8448 3051 5353 ];
networking.firewall.allowedUDPPortRanges = [ networking.firewall.allowedUDPPortRanges = [
{ from = 49152; to = 65535; } { from = 49152; to = 65535; }
]; ];
# ── mDNS / Avahi (sovransystemsos.local) ──────────────────
services.avahi = {
enable = true;
nssmdns4 = true;
publish = {
enable = true;
addresses = true;
};
};
# ── Locale / Time ────────────────────────────────────────── # ── Locale / Time ──────────────────────────────────────────
time.timeZone = "America/Los_Angeles"; time.timeZone = "America/Los_Angeles";
i18n.defaultLocale = "en_US.UTF-8"; i18n.defaultLocale = "en_US.UTF-8";

View File

@@ -145,6 +145,14 @@ $HAVEN {
EOF EOF
fi fi
# Sovran Hub (LAN mDNS access)
cat >> /run/caddy/Caddyfile <<EOF
http://sovransystemsos.local {
reverse_proxy localhost:8937
}
EOF
# RTL (LAN access) # RTL (LAN access)
cat >> /run/caddy/Caddyfile <<EOF cat >> /run/caddy/Caddyfile <<EOF