Change Git SSH port from 1337 to 2222

- Port 1337 appears to be blocked by VPS provider
- Port 2222 is more commonly allowed for SSH services
- Update both reverse-proxy and Forgejo configurations
- This should resolve the SSH timeout issues
This commit is contained in:
Geir Okkenhaug Jerstad 2025-06-10 22:42:13 +02:00
parent f2c9eed794
commit 1f222f2997
2 changed files with 4 additions and 4 deletions

View file

@ -19,9 +19,9 @@
# DMZ-specific firewall configuration - simplified for testing
networking.firewall = {
enable = true;
# Allow HTTP/HTTPS from external network and Git SSH on port 1337
# Allow HTTP/HTTPS from external network and Git SSH on port 2222
# Temporarily allow SSH from everywhere - rely on fail2ban for protection
allowedTCPPorts = [ 22 80 443 1337 ];
allowedTCPPorts = [ 22 80 443 2222 ];
allowedUDPPorts = [ ];
# Explicitly block all other traffic
rejectPackets = true;
@ -81,7 +81,7 @@
}
server {
listen 1337;
listen 2222;
proxy_pass git_ssh_backend;
proxy_timeout 300s;
proxy_connect_timeout 10s;