diff options
| author | caley <195605706+cqley@users.noreply.github.com> | 2026-08-11 23:29:01 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-08-11 23:29:01 +0200 |
| commit | 9e2c62a204b7416c79889f0dfc0e96a7e8ebc1b4 (patch) | |
| tree | 51bdf9cdafeb9c0c0d0cae58c722d2b4855e6482 /nixos/hosts | |
| parent | 9d1d67592b2e49f2cecbcd7ad248f6c5cb42b647 (diff) | |
Diffstat (limited to 'nixos/hosts')
| -rw-r--r-- | nixos/hosts/bin/components/cgit.nix | 15 |
1 files changed, 12 insertions, 3 deletions
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"; }; }; } |
