summaryrefslogtreecommitdiff
path: root/cgit/uwsgi
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2016-04-29 18:51:19 +0200
committerJonas Smedegaard <dr@jones.dk>2016-04-29 18:51:28 +0200
commit99756ab887912bbb0bba0401a2650c6ce2123a29 (patch)
treee478197765e32cbc4e520c65bdff3f60c81b6d1b /cgit/uwsgi
parent2214e868589631eb347ff73b2ae11969554bf3cf (diff)
Move and improve cgit snippets.
Diffstat (limited to 'cgit/uwsgi')
-rw-r--r--cgit/uwsgi/local-git.ini21
1 files changed, 21 insertions, 0 deletions
diff --git a/cgit/uwsgi/local-git.ini b/cgit/uwsgi/local-git.ini
new file mode 100644
index 0000000..0b9c27c
--- /dev/null
+++ b/cgit/uwsgi/local-git.ini
@@ -0,0 +1,21 @@
+[uwsgi]
+
+# serve via uwsgi protocol to frontend webserver
+# * load CGI plugin as default modifier1 to ease frontend setup
+plugins = 0:cgi,router_cache
+
+threads = 8
+offload-threads = 8
+
+# serve static files directly (even better: serve by frontend webserver)
+check-static-docroot = 1
+static-map = /cgit-css/=/usr/share/cgit/
+static-map = /favicon.ico=/usr/share/cgit/favicon.ico
+static-map = /robots.txt=/usr/share/cgit/robots.txt
+
+cgi = /usr/lib/cgit/cgit.cgi
+
+; cache indexes
+cache2 = name=indexes,items=100
+route = /$ cache:key=${REQUEST_URI},name=indexes
+route = /$ cachestore:key=${REQUEST_URI},name=indexes