fix(reverse-proxy): proxy Gitea SSH stream

This commit was merged in pull request #48.
This commit is contained in:
2026-08-17 09:14:39 -04:00
parent 114f0445cf
commit 0141962fef
2 changed files with 13 additions and 0 deletions

View File

@@ -5,6 +5,7 @@
...
}:
let
giteaSshBackend = "10.23.20.45:2022";
legacyBackend = "http://10.23.20.32";
legacyHosts = [
"games.alexion.dev"
@@ -35,6 +36,15 @@ in
enable = true;
routes = config.modules.reverse-proxy.routes // legacyRoutes;
};
networking.firewall.allowedTCPPorts = [ 2022 ];
services.nginx.streamConfig = ''
server {
listen 2022;
proxy_pass ${giteaSshBackend};
}
'';
};
})
];