summaryrefslogtreecommitdiff
path: root/nixos/hosts/bin/components/cgit.nix
blob: 5b6e75c97f9d623bc94d9eabd2a95c476b663e53 (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.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";
    };
  };
}