diff options
| author | Shy <[email protected]> | 2025-12-20 14:50:25 -0500 |
|---|---|---|
| committer | Shy <[email protected]> | 2025-12-20 14:50:25 -0500 |
| commit | 577077f77c4d47ce6ef725c48c60ce857baa19c0 (patch) | |
| tree | f7956e6b38a350e1e8a73e9b82c4cbd3bfbc2ee5 | |
| parent | 5f6237538cb391bd69a75d90f93405306b6b880d (diff) | |
| download | alpine-cgit-577077f77c4d47ce6ef725c48c60ce857baa19c0.tar.xz alpine-cgit-577077f77c4d47ce6ef725c48c60ce857baa19c0.zip | |
| -rw-r--r-- | cgit/cgit.conf | 8 | ||||
| -rw-r--r-- | nginx/conf.d/default.conf | 5 |
2 files changed, 8 insertions, 5 deletions
diff --git a/cgit/cgit.conf b/cgit/cgit.conf index 3a1c755..9d35c0f 100644 --- a/cgit/cgit.conf +++ b/cgit/cgit.conf @@ -40,6 +40,14 @@ readme=:install.txt readme=:INSTALL readme=:install +mimetype.gif=image/gif +mimetype.html=text/html +mimetype.jpg=image/jpeg +mimetype.jpeg=image/jpeg +mimetype.pdf=application/pdf +mimetype.png=image/png +mimetype.svg=image/svg+xml + # Default Theme css=/cgit.css logo=/cgit.png diff --git a/nginx/conf.d/default.conf b/nginx/conf.d/default.conf index b991022..c33aaf5 100644 --- a/nginx/conf.d/default.conf +++ b/nginx/conf.d/default.conf @@ -7,11 +7,6 @@ server { try_files $uri @cgit; } - location ~* ^.+(cgit.(css|png)|favicon.ico|robots.txt) { - root /usr/share/webapps/cgit; - expires 30d; - } - location ~ /.+/(info/refs|git-upload-pack) { include fastcgi_params; fastcgi_param SCRIPT_FILENAME /usr/libexec/git-core/git-http-backend; |
