summaryrefslogtreecommitdiff
path: root/cgit
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2019-02-22 04:54:09 +0100
committerJonas Smedegaard <dr@jones.dk>2019-02-22 04:54:09 +0100
commit0493eab61e567bef92a5a83a58064705a0267af8 (patch)
tree1a7736849ce570e4aabede22c2886f9f471d1d9e /cgit
parentf178bb01838689e977f6fce7a2f9f10c9938930e (diff)
Use uGreen. Disable static content within uWSGI.
Diffstat (limited to 'cgit')
-rw-r--r--cgit/uwsgi/apps-available/local-git.ini19
1 files changed, 14 insertions, 5 deletions
diff --git a/cgit/uwsgi/apps-available/local-git.ini b/cgit/uwsgi/apps-available/local-git.ini
index 2ac907e..7fcaf54 100644
--- a/cgit/uwsgi/apps-available/local-git.ini
+++ b/cgit/uwsgi/apps-available/local-git.ini
@@ -2,15 +2,24 @@
# serve via uwsgi protocol to frontend webserver
# * load CGI plugin as default modifier1 to ease frontend setup
-plugins = 0:cgi
+# * load uGreen for cheap concurrency
+plugins = 0:cgi,ugreen
-threads = 8
-offload-threads = 8
+ini = :app
+#ini = :static
+
+[app]
+
+async = 1000
+ugreen = true
+offload-threads = 5
+
+cgi = /=/usr/lib/cgit/cgit.cgi
+
+[static]
# 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