aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorroot <[email protected]>2026-02-07 02:28:19 +0000
committerroot <[email protected]>2026-02-07 02:28:19 +0000
commit5d1aab5314c91be08e324a0277fd84e2522f90ba (patch)
tree772e17d0943a9be4abc9381733120ef802ee1303
parentbc3203a5c2a507aedfcb314119bf0ac65a12cce9 (diff)
downloadalpine-cgit-5d1aab5314c91be08e324a0277fd84e2522f90ba.tar.xz
alpine-cgit-5d1aab5314c91be08e324a0277fd84e2522f90ba.zip
Bug fixesHEADmaster
-rw-r--r--cgit/cgit.conf10
-rw-r--r--nginx/conf.d/default.conf4
2 files changed, 13 insertions, 1 deletions
diff --git a/cgit/cgit.conf b/cgit/cgit.conf
index 9d35c0f..7024f68 100644
--- a/cgit/cgit.conf
+++ b/cgit/cgit.conf
@@ -7,6 +7,8 @@ root-desc=$CGIT_DESC
source-filter=/usr/lib/cgit/filters/syntax-highlighting.py
about-filter=/usr/lib/cgit/filters/about-formatting.sh
+clone-prefix=https://git.shyy.io
+
#
# Search for these files in the root of the default branch of repositories
# for coming up with the about page:
@@ -54,7 +56,13 @@ logo=/cgit.png
# Cache
cache-root=/var/cache/cgit
-cache-size=2000
+cache-size=0
+
+cache-root-ttl=0
+cache-repo-ttl=0
+cache-dynamic-ttl=0
+cache-static-ttl=0
+
enable-index-links=1
enable-index-owner=0
diff --git a/nginx/conf.d/default.conf b/nginx/conf.d/default.conf
index c33aaf5..9511938 100644
--- a/nginx/conf.d/default.conf
+++ b/nginx/conf.d/default.conf
@@ -16,6 +16,10 @@ server {
fastcgi_param GIT_CONFIG_COUNT 1;
fastcgi_param GIT_CONFIG_KEY_0 safe.directory;
fastcgi_param GIT_CONFIG_VALUE_0 *;
+
+ fastcgi_param CONTENT_TYPE $content_type;
+ fastcgi_param CONTENT_LENGTH $content_length;
+
fastcgi_param HOME /srv/git;
fastcgi_pass unix:/var/run/fcgiwrap.sock;
}