From 2bc663e94178605959414d061cf6c9152078e20e Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Sun, 25 Jul 2021 15:14:16 -0300 Subject: servers/nixvps/configuration.nix: Serve Git repositories from NGINX, remove Git daemon --- servers/nixvps/configuration.nix | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) (limited to 'servers/nixvps') 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 = [ -- cgit v1.2.3