feat(nixos): cut over Gitea to Pikachu

This commit is contained in:
alexion committed 2026-10-22 19:08:50 -04:00
1 parent c6ccae1714
commit a28ecf6040
4 files changed
+9 -16

No files matched your search

+6 -5
View File
@@ -1,10 +1,11 @@
{
config,
lib,
registry,
...
}:
let
giteaSshBackend = "10.23.20.45:2022";
giteaAddress = registry.address.${config.networking.hostName}.gitea;
in
{
config = lib.mkIf config.guests.reverse-proxy.enable {
@@ -16,7 +17,7 @@ in
"git.alexion.dev" = {
forceSSL = true;
enableACME = true;
locations."/".proxyPass = "http://10.23.20.32";
locations."/".proxyPass = "http://${giteaAddress}:3000";
};
"photos.alexion.dev" = {
forceSSL = true;
@@ -45,12 +46,12 @@ in
};
};
networking.firewall.allowedTCPPorts = [ 2022 ];
networking.firewall.allowedTCPPorts = [ 22 ];
services.nginx.streamConfig = ''
server {
listen 2022;
proxy_pass ${giteaSshBackend};
listen 22;
proxy_pass ${giteaAddress}:2222;
}
'';
};