From 68c9475a94e6e45c77cc77b231cf539839c8558e Mon Sep 17 00:00:00 2001 From: Lucas Sta Maria Date: Tue, 12 Aug 2025 14:59:31 +0000 Subject: [PATCH] fix(nix): configure forgejo --- nix/hosts/chaewon/sys.nix | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/nix/hosts/chaewon/sys.nix b/nix/hosts/chaewon/sys.nix index da8162b..71c9179 100644 --- a/nix/hosts/chaewon/sys.nix +++ b/nix/hosts/chaewon/sys.nix @@ -104,6 +104,28 @@ ''; }; }; + "git.priime.dev" = { + forceSSL = true; + enableACME = true; + extraConfig = '' + client_max_body_size 512M; + ''; + locations."/".proxyPass = "http://localhost:3000"; + }; + }; + }; + + services.forgejo = { + enable = true; + database.type = "postgres"; + lfs.enable = true; + settings = { + server = { + DOMAIN = "git.priime.dev"; + ROOT_URL = "https://git.priime.dev/"; + HTTP_PORT = 3000; + }; + service.DISABLE_REGISTRATION = true; }; };