fix(nixos): retain Gitea LXC routes

This commit is contained in:
alexion committed 2026-10-22 16:51:17 -04:00
1 parent 7737f72328
commit 86c698e39e
3 files changed
+8 -8

No files matched your search

+1 -1
View File
@@ -102,7 +102,7 @@ Confirm you have connectivity (`ping -c1 github.com`) before continuing.
Clone the monorepo onto the live ISO and work from that local checkout: Clone the monorepo onto the live ISO and work from that local checkout:
```console ```console
$ git clone ssh://gitea@git.alexion.dev/alexion/dev.git $ git clone ssh://gitea@git.alexion.dev:2022/alexion/dev.git
$ cd dev $ cd dev
``` ```
+5 -6
View File
@@ -1,11 +1,10 @@
{ {
config, config,
lib, lib,
registry,
... ...
}: }:
let let
giteaAddress = registry.address.${config.networking.hostName}.gitea; giteaSshBackend = "10.23.20.45:2022";
in in
{ {
config = lib.mkIf config.guests.reverse-proxy.enable { config = lib.mkIf config.guests.reverse-proxy.enable {
@@ -17,7 +16,7 @@ in
"git.alexion.dev" = { "git.alexion.dev" = {
forceSSL = true; forceSSL = true;
enableACME = true; enableACME = true;
locations."/".proxyPass = "http://${giteaAddress}:3000"; locations."/".proxyPass = "http://10.23.20.32";
}; };
"photos.alexion.dev" = { "photos.alexion.dev" = {
forceSSL = true; forceSSL = true;
@@ -46,12 +45,12 @@ in
}; };
}; };
networking.firewall.allowedTCPPorts = [ 22 ]; networking.firewall.allowedTCPPorts = [ 2022 ];
services.nginx.streamConfig = '' services.nginx.streamConfig = ''
server { server {
listen 22; listen 2022;
proxy_pass ${giteaAddress}:2222; proxy_pass ${giteaSshBackend};
} }
''; '';
}; };
+2 -1
View File
@@ -33,9 +33,10 @@ let
}); });
extraTargets = { extraTargets = {
# TODO: Pin Gitea's host key after deploying its Pikachu guest. # TODO: Pin Gitea's host key after migrating it from Proxmox.
gitea = { gitea = {
hostName = "git.alexion.dev"; hostName = "git.alexion.dev";
port = 2022;
user = "gitea"; user = "gitea";
aliases = [ aliases = [
"gitea" "gitea"