diff options
-rw-r--r-- | servers/nixvps/configuration.nix | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/servers/nixvps/configuration.nix b/servers/nixvps/configuration.nix index a952600..6ad9087 100644 --- a/servers/nixvps/configuration.nix +++ b/servers/nixvps/configuration.nix @@ -51,9 +51,6 @@ in { # HTTP and HTPPS: NGINX 80 443 - - # Git protocol - 9418 ]; security = { @@ -89,6 +86,9 @@ in { forceSSL = true; enableACME = true; root = "/srv/http/"; + extraConfig = '' + autoindex on; + ''; }; "git.${config.TLD}" = { forceSSL = true; @@ -132,18 +132,12 @@ in { snapshots=tar.xz source-filter=${pkgs.cgit}/lib/cgit/filters/syntax-highlighting.py about-filter=${pkgs.cgit}/lib/cgit/filters/about-formatting.sh - scan-path=/srv/git + scan-path=/srv/http mimetype.mjs=text/javascript ''; }; }; - gitDaemon = { - enable = true; - basePath = "/srv/git"; - exportAll = true; - }; - cron = { enable = true; systemCronJobs = [ |