summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--nixos/hosts/bin/components/cgit.nix15
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";
};
};
}