From 27c930d6bb00617fd856780c58a8aa35587dea20 Mon Sep 17 00:00:00 2001 From: Polen Date: Wed, 27 May 2026 10:05:10 -0400 Subject: [PATCH] forgejo! --- devices/server/configuration.nix | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/devices/server/configuration.nix b/devices/server/configuration.nix index a74b6bd..567109b 100644 --- a/devices/server/configuration.nix +++ b/devices/server/configuration.nix @@ -44,6 +44,10 @@ in { reverse_proxy http://127.0.0.1:3000 ''; + virtualHosts."git.polensky.me".extraConfig = '' + reverse_proxy http://127.0.0.1:3001 + ''; + virtualHosts."pb.polensky.me".extraConfig = '' request_body { max_size 10MB @@ -71,6 +75,24 @@ in { openFirewall = true; # 8080 }; + services.forgejo = { + enable = true; + lfs.enable = true; + settings = { + server = { + DOMAIN = "git.polensky.me"; + ROOT_URL = "https://git.polensky.me/"; + HTTP_PORT = 3001; + }; + service = { + DISABLE_REGISTRATION = true; + }; + actions = { + ENABLED = true; + }; + }; + }; + # observability services = { grafana = {