fix(reverse-proxy): proxy Gitea SSH stream #48

Merged
alexion merged 1 commits from fix/reverse-proxy-git-ssh-stream into main 2026-08-17 09:37:50 -04:00
2 changed files with 13 additions and 0 deletions

View File

@@ -99,3 +99,6 @@ The domain model (Host, Module, Skeleton, Auto-loader, Enable convention, overla
- The current Steam desktop client is an XWayland application. - The current Steam desktop client is an XWayland application.
Its CEF windows do not support Ozone and Steam composites them into an SDL surface with X11 extensions, so SDL Wayland selectors do not make the visible client native Wayland. Its CEF windows do not support Ozone and Steam composites them into an SDL surface with X11 extensions, so SDL Wayland selectors do not make the visible client native Wayland.
Keep fractional scaling sharp with Hyprland's `xwayland.force_zero_scaling` and Steam's own `STEAM_FORCE_DESKTOPUI_SCALING` instead. Keep fractional scaling sharp with Hyprland's `xwayland.force_zero_scaling` and Steam's own `STEAM_FORCE_DESKTOPUI_SCALING` instead.
- AdGuard's LAN wildcard rewrite for `*.alexion.dev` points names at the new reverse-proxy guest.
That affects non-HTTP ports too: `git.alexion.dev:2022` resolves to the reverse-proxy guest on LAN, so Git SSH times out unless the reverse-proxy guest also handles the Gitea SSH TCP stream or AdGuard has a more specific exception.
A temporary command workaround is `GIT_SSH_COMMAND='ssh -o HostName=10.23.20.45 -o HostKeyAlias=[git.alexion.dev]:2022' git fetch origin main`.

View File

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