diff options
author | EuAndreh <eu@euandre.org> | 2021-07-25 15:14:16 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2021-07-25 15:14:16 -0300 |
commit | 2bc663e94178605959414d061cf6c9152078e20e (patch) | |
tree | 106056b9d9aee45a3b48ce74b4c883a697c5ddee | |
parent | servers/nixvps/configuration.nix: Use tar.xz and misc CGit configs (diff) | |
download | toph-2bc663e94178605959414d061cf6c9152078e20e.tar.gz toph-2bc663e94178605959414d061cf6c9152078e20e.tar.xz |
servers/nixvps/configuration.nix: Serve Git repositories from NGINX, remove Git daemon
-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 = [ |