2 changed files with 14 additions and 28 deletions

No files matched your search

+7 -21
View File
@@ -47,25 +47,11 @@
services.automerge-repo-sync-server.enable = true;
services.caddy = {
enable = true;
virtualHosts = {
"knot.commonscomputer.com".extraConfig = ''
reverse_proxy http://localhost:5555
'';
"pds.commonscomputer.com".extraConfig = ''
reverse_proxy http://localhost:5556
'';
"spindle.commonscomputer.com".extraConfig = ''
reverse_proxy http://localhost:6555
'';
"automerge.commonscomputer.com".extraConfig = ''
reverse_proxy http://localhost:3030
'';
};
};
networking.firewall.allowedTCPPorts = [
80
443
];
# Public edge moved 2026-09-28: 205.250.24.44 -> pve Caddy LXC (192.168.1.11)
# now fronts pds/knot/spindle/automerge (see cc-ansible wiki / onboard plan).
# PL63 no longer terminates public TLS; its Caddy is removed and the four
# vhosts are served by the edge. Services keep binding the local ports.
# (services.caddy block removed — nothing LAN-local needs it.)
# networking.firewall.allowedTCPPorts = [ 80 443 ]; is likewise gone;
# 80/443 on eth0 are no longer used now that the public forwards moved.
}
+7 -7
View File
@@ -96,14 +96,14 @@
};
# Open ports in the firewall.
networking.firewall.allowedTCPPorts = [ 22 80 443 ];
# Allow the CC edge (Caddy LXC on pve, 192.168.1.11) + LAN to reach the
# service ports directly; the public entry point moves off this box to
# 205.250.24.44 -> pve Caddy (see cc-ansible wiki / onboard plan).
# NOTE (2026-09-28): extraInputRules is nftables-backend-only and this box
# runs the default iptables backend — the src-scoped rule from PR #1 was a
# silent no-op (verified: ports stayed blocked from LAN after rebuild).
# allowedTCPPorts is backend-agnostic. Source-scoping is unnecessary now:
# the public forwards move off this box (205.250.24.44 -> pve Caddy LXC
# .1.11), leaving LAN (Z_DMZ) + tailnet as the only ingress paths.
# Tailnet traffic already bypasses this (tailscale0 not restricted).
networking.firewall.extraInputRules = ''
ip saddr 192.168.1.0/24 tcp dport { 5555, 5556, 6555, 3030 } accept
'';
networking.firewall.allowedTCPPorts = [ 22 5555 5556 6555 3030 ];
# networking.firewall.allowedUDPPorts = [ ... ];
# Or disable the firewall altogether.
# networking.firewall.enable = false;