feat: enable mDNS (Avahi) and local reverse proxy for sovransystemsos.local
Agent-Logs-Url: https://github.com/naturallaw777/staging_alpha/sessions/4159c571-2bfb-48fc-a6bc-e0765ef88ef6 Co-authored-by: naturallaw777 <99053422+naturallaw777@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
2e9bb9e920
commit
08452e06cc
@@ -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";
|
||||||
|
|||||||
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user