commit 2ef44503b3520ff045b13ece00079e2718faf3ab parent d7cd4d083c3a9ca98d95372c351c327cccd6ab2a Author: Silas Brack <silasbrack@gmail.com> Date: Thu, 2 Apr 2026 16:36:35 +0200 Add forgejo Diffstat:
| M | nixos/configuration-debian-2gb-hel1-1.nix | | | 28 | ++++++++++++++++++++++++++++ |
1 file changed, 28 insertions(+), 0 deletions(-)
diff --git a/nixos/configuration-debian-2gb-hel1-1.nix b/nixos/configuration-debian-2gb-hel1-1.nix @@ -152,6 +152,34 @@ forceSSL = true; }; + # Forgejo + services.forgejo = { + enable = true; + database.type = "postgres"; + lfs.enable = true; + settings = { + server = { + DOMAIN = "git.fnarglebeast.com"; + ROOT_URL = "https://git.fnarglebeast.com/"; + HTTP_PORT = 3001; + }; + service = { + DISABLE_REGISTRATION = true; + }; + session = { + COOKIE_SECURE = true; + }; + }; + }; + services.nginx.virtualHosts."git.fnarglebeast.com" = { + enableACME = true; + forceSSL = true; + locations."/" = { + proxyPass = "http://127.0.0.1:3001"; + proxyWebsockets = true; + }; + }; + # services.simple-web-app = { # enable = true; # package = simple-web-app.packages."x86_64-linux".default;