diff options
| -rw-r--r-- | nixos/hosts/bin/components/cgit.nix | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/nixos/hosts/bin/components/cgit.nix b/nixos/hosts/bin/components/cgit.nix new file mode 100644 index 0000000..5b6e75c --- /dev/null +++ b/nixos/hosts/bin/components/cgit.nix @@ -0,0 +1,25 @@ +{ + services.nginx = { + enable = true; + virtualHosts."5.231.118.254" = {}; + }; + + services.cgit.blind = { + enable = true; + scanPath = "/srv/git"; + nginx.virtualHost = "5.231.118.254"; + gitHttpBackend = { + enable = true; + checkExportOkFiles = false; + }; + settings = { + root-title = "blind"; + root-desc = ""; + enable-index-owner = 0; + enable-commit-graph = 1; + enable-log-filecount = 1; + enable-log-linecount = 1; + clone-prefix = "http://5.231.118.254"; + }; + }; +} |
