diff options
| author | Raghuram Subramani <raghus2247@gmail.com> | 2025-10-09 16:26:03 -0400 | 
|---|---|---|
| committer | Raghuram Subramani <raghus2247@gmail.com> | 2025-10-09 16:26:03 -0400 | 
| commit | bc48b5b3cc2571b3213c276e86bdbf0b3caee183 (patch) | |
| tree | 0db82d84c3f8ffae8ebfd0f8f1f6eb3b24bd6673 /modules/git | |
| parent | 4df13c093b749cd9500512f01f5756f9f1d4d6e6 (diff) | |
fix cgit configuration
Diffstat (limited to '')
| -rw-r--r-- | modules/git/cgit.nix | 51 | 
1 files changed, 4 insertions, 47 deletions
| diff --git a/modules/git/cgit.nix b/modules/git/cgit.nix index 3749898..59bb07c 100644 --- a/modules/git/cgit.nix +++ b/modules/git/cgit.nix @@ -3,8 +3,10 @@  let    repositoryPath = "/home/compromyse";  in { -  services.cgit."localhost" = { +  services.cgit."git.compromyse.xyz" = {      enable = true; +    user = "root"; +    group = "root";      scanPath = repositoryPath;      settings = {        root-title = "compromyse: CGIT"; @@ -14,51 +16,6 @@ in {        enable-log-filecount = 1;        enable-log-linecount = 1;      }; -  }; - -  services.h2o = { -    enable = true; -    user = "cgit"; -    group = "cgit"; - -    hosts = { -      "" = { -        listen = [ -          { port = 80; host = "0.0.0.0"; } -          { -            port = 443; -            host = "0.0.0.0"; -            ssl = { -              certificate-file = "/var/lib/acme/git.compromyse.xyz/fullchain.pem"; -              key-file = "/var/lib/acme/git.compromyse.xyz/key.pem"; -            }; -          } -        ]; - -        paths = { -          "/static/" = { -            file.dir = "${pkgs.cgit}/cgit"; -          }; - -          "/" = { -            fastcgi.connect.unix = "/run/cgit.sock"; -            fastcgi.spawn = "no"; -            fastcgi.params = { -              SCRIPT_FILENAME = "${pkgs.cgit}/cgit/cgit.cgi"; -              PATH_INFO = "index.html"; -            }; -          }; -        }; - -        accessLog = "/var/log/h2o/git-access.log"; -        errorLog = "/var/log/h2o/git-error.log"; -      }; -    }; -  }; - -  security.acme = { -    acceptTerms = true; -    defaults.email = "raghus2247@gmail.com"; -    certs."git.compromyse.xyz".webroot = "/var/lib/acme/acme-challenge"; +    virtualHost = "git.compromyse.xyz"    };  } | 
