summaryrefslogtreecommitdiff
path: root/etc/uwsgi
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2020-08-13 19:21:14 +0200
committerJonas Smedegaard <dr@jones.dk>2020-08-13 19:21:14 +0200
commit95862f2b20c81294413824ec2dd00f9b17905994 (patch)
tree828217c395c60630070510ee247e323861260b86 /etc/uwsgi
initial commit
Diffstat (limited to 'etc/uwsgi')
-rw-r--r--etc/uwsgi/apps-available/local-git.ini25
1 files changed, 25 insertions, 0 deletions
diff --git a/etc/uwsgi/apps-available/local-git.ini b/etc/uwsgi/apps-available/local-git.ini
new file mode 100644
index 0000000..7fcaf54
--- /dev/null
+++ b/etc/uwsgi/apps-available/local-git.ini
@@ -0,0 +1,25 @@
+[uwsgi]
+
+# serve via uwsgi protocol to frontend webserver
+# * load CGI plugin as default modifier1 to ease frontend setup
+# * load uGreen for cheap concurrency
+plugins = 0:cgi,ugreen
+
+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