From 9e2c62a204b7416c79889f0dfc0e96a7e8ebc1b4 Mon Sep 17 00:00:00 2001 From: caley <195605706+cqley@users.noreply.github.com> Date: Tue, 11 Aug 2026 23:29:01 +0200 Subject: Update cgit.nix --- nixos/hosts/bin/components/cgit.nix | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'nixos/hosts/bin/components') diff --git a/nixos/hosts/bin/components/cgit.nix b/nixos/hosts/bin/components/cgit.nix index 7aaaf06..3e1e07d 100644 --- a/nixos/hosts/bin/components/cgit.nix +++ b/nixos/hosts/bin/components/cgit.nix @@ -1,13 +1,22 @@ { + networking.firewall.allowedTCPPorts = [ 8888 ]; + services.nginx = { enable = true; - virtualHosts."5.231.118.153" = {}; + virtualHosts."cgit" = { + listen = [ + { + addr = "5.231.118.153"; + port = 8888; + } + ]; + }; }; services.cgit.tight = { enable = true; scanPath = "/srv/git"; - nginx.virtualHost = "5.231.118.153"; + nginx.virtualHost = "cgit"; gitHttpBackend = { enable = true; checkExportOkFiles = false; @@ -19,7 +28,7 @@ enable-commit-graph = 1; enable-log-filecount = 1; enable-log-linecount = 1; - clone-prefix = "http://5.231.118.153"; + clone-prefix = "http://5.231.118.153:8888"; }; }; } -- cgit v1.3.1