diff options
author | Elizabeth Hunt <me@liz.coffee> | 2025-07-28 23:41:06 -0700 |
---|---|---|
committer | Elizabeth Hunt <me@liz.coffee> | 2025-07-28 23:43:46 -0700 |
commit | 514f688fe8bc778e188efa1af75f109cafb3f123 (patch) | |
tree | 119e2d42c76ca31863e3e0ebf8dfd5867425726a | |
parent | 76d9aac426948029b40a0a59f18caac502bbf8ed (diff) | |
download | wwwgit-release.tar.gz wwwgit-release.zip |
-rw-r--r-- | cgit.nginx.conf | 5 | ||||
-rw-r--r-- | cgitrc | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/cgit.nginx.conf b/cgit.nginx.conf index f071c8d..c6fc957 100644 --- a/cgit.nginx.conf +++ b/cgit.nginx.conf @@ -4,6 +4,9 @@ server { server_name localhost; + access_log /var/log/nginx/cgit-access.log; + error_log /var/log/nginx/cgit-error.log; + root /var/www/html/cgit/cgi; try_files $uri @cgit; @@ -18,6 +21,6 @@ server { } location ~ ^/(cgit.css|cgit.png|favicon.ico|header.html|footer.html) { - root /var/www/html/cgit/static; + root /var/www/html/cgit/static/; } } @@ -11,7 +11,10 @@ max-repo-count=100 snapshots=tar.gz zip enable-http-clone=1 +enable-index-owner=0 scan-path=/var/lib/git/repositories source-filter=/var/www/html/cgit/filters/cgit-pygments-filter.py + +virtual-root=/ |