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; }; };