Implement SSH forwarding for Forgejo Git access

- Add nginx stream configuration on reverse-proxy to forward port 2222 to apps:22
- Update firewall rules to allow port 2222 for Git SSH access
- Configure Forgejo to use SSH_PORT = 2222 for Git operations
- Add comprehensive SSH forwarding research documentation
- Enable Git operations via git@git.geokkjer.eu:2222

Phase 1 implementation using nginx stream module complete.
Ready for testing and potential Phase 2 migration to HAProxy.
This commit is contained in:
Geir Okkenhaug Jerstad 2025-06-07 15:21:11 +02:00
parent 1e75db5f15
commit a35d9ff420
3 changed files with 327 additions and 14 deletions

View file

@ -15,6 +15,7 @@
server = {
ROOT_URL = "http://apps:3000";
SSH_DOMAIN = "git.geokkjer.eu";
SSH_PORT = 2222;
};
repository = {
ENABLE_PUSH_CREATE_USER = true;