aboutsummaryrefslogtreecommitdiff
path: root/servers/nixvps/configuration.nix
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2021-07-25 15:14:16 -0300
committerEuAndreh <eu@euandre.org>2021-07-25 15:14:16 -0300
commit2bc663e94178605959414d061cf6c9152078e20e (patch)
tree106056b9d9aee45a3b48ce74b4c883a697c5ddee /servers/nixvps/configuration.nix
parentservers/nixvps/configuration.nix: Use tar.xz and misc CGit configs (diff)
downloadserver-2bc663e94178605959414d061cf6c9152078e20e.tar.gz
server-2bc663e94178605959414d061cf6c9152078e20e.tar.xz
servers/nixvps/configuration.nix: Serve Git repositories from NGINX, remove Git daemon
Diffstat (limited to 'servers/nixvps/configuration.nix')
-rw-r--r--servers/nixvps/configuration.nix14
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 = [