Merge pull request #73 from naturallaw777/copilot/remove-unnecessary-port-exposure
Security: restrict RTL, Hub, and Mempool to LAN-only access
This commit is contained in:
@@ -156,7 +156,7 @@ EOF
|
|||||||
# ── RTL (LAN access) ────────────────────────────
|
# ── RTL (LAN access) ────────────────────────────
|
||||||
cat >> /run/caddy/Caddyfile <<EOF
|
cat >> /run/caddy/Caddyfile <<EOF
|
||||||
|
|
||||||
:3051 {
|
http://127.0.0.1:3051, http://sovransystemsos.local:3051 {
|
||||||
reverse_proxy :3050
|
reverse_proxy :3050
|
||||||
encode gzip zstd
|
encode gzip zstd
|
||||||
}
|
}
|
||||||
@@ -165,7 +165,7 @@ EOF
|
|||||||
# ── Mempool (LAN access) ────────────────────────
|
# ── Mempool (LAN access) ────────────────────────
|
||||||
cat >> /run/caddy/Caddyfile <<EOF
|
cat >> /run/caddy/Caddyfile <<EOF
|
||||||
|
|
||||||
:60847 {
|
http://127.0.0.1:60847, http://sovransystemsos.local:60847 {
|
||||||
reverse_proxy :60845
|
reverse_proxy :60845
|
||||||
encode gzip zstd
|
encode gzip zstd
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -293,6 +293,5 @@ in
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
networking.firewall.allowedTCPPorts = [ 3051 8937 60847 ];
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user