From fe8ff3d895bc855c8e0ec7c475a6752b8f862fdb Mon Sep 17 00:00:00 2001 From: George Date: Fri, 29 May 2026 18:29:47 +0300 Subject: [PATCH] feat?: +gitea --- nixos/system/hectic-lab/hectic-lab.nix | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/nixos/system/hectic-lab/hectic-lab.nix b/nixos/system/hectic-lab/hectic-lab.nix index 0742270..2fb56e8 100644 --- a/nixos/system/hectic-lab/hectic-lab.nix +++ b/nixos/system/hectic-lab/hectic-lab.nix @@ -255,6 +255,7 @@ in { 80 443 3306 # mysql + 11012 # gitea ssh 25565 55228 # ss-bfs ]; @@ -318,6 +319,24 @@ in { ''; }; }; + virtualHosts."gitea.${domain}" = sslOpts // { + forceSSL = true; + locations."/" = { + extraConfig = '' + proxy_pass http://127.0.0.1:11011/; + proxy_redirect off; + ''; + }; + }; + }; + + services.gitea = { + enable = true; + settings.server = { + HTTP_PORT = 11011; + SSH_PORT = 11012; + }; + database.type = "postgres"; }; # === WireGuard (disabled) ===