From cb6e119823be3a105343dd357ce67449108a925e Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Fri, 29 Apr 2016 18:57:17 +0200 Subject: Fix uwsgi snippet location. --- cgit/uwsgi/apps-available/local-git.ini | 21 +++++++++++++++++++++ cgit/uwsgi/local-git.ini | 21 --------------------- 2 files changed, 21 insertions(+), 21 deletions(-) create mode 100644 cgit/uwsgi/apps-available/local-git.ini delete mode 100644 cgit/uwsgi/local-git.ini (limited to 'cgit') diff --git a/cgit/uwsgi/apps-available/local-git.ini b/cgit/uwsgi/apps-available/local-git.ini new file mode 100644 index 0000000..0b9c27c --- /dev/null +++ b/cgit/uwsgi/apps-available/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 diff --git a/cgit/uwsgi/local-git.ini b/cgit/uwsgi/local-git.ini deleted file mode 100644 index 0b9c27c..0000000 --- a/cgit/uwsgi/local-git.ini +++ /dev/null @@ -1,21 +0,0 @@ -[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 -- cgit v1.2.3