summaryrefslogtreecommitdiff
path: root/nixos/hosts/bin/components/cgit.nix
blob: 7aaaf06a9b7bcd6048b39e22bfdc066e4dea14ee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{
  services.nginx = {
    enable = true;
    virtualHosts."5.231.118.153" = {};
  };

  services.cgit.tight = {
    enable = true;
    scanPath = "/srv/git";
    nginx.virtualHost = "5.231.118.153";
    gitHttpBackend = {
      enable = true;
      checkExportOkFiles = false;
    };
    settings = {
      root-title = "tight";
      root-desc = "";
      enable-index-owner = 0;
      enable-commit-graph = 1;
      enable-log-filecount = 1;
      enable-log-linecount = 1;
      clone-prefix = "http://5.231.118.153";
    };
  };
}