summaryrefslogtreecommitdiff
path: root/cgit/uwsgi/local-git.ini
blob: 0b9c27c0d4bd232a256617e1ea74898a1f5d7db8 (plain)
  1. [uwsgi]
  2. # serve via uwsgi protocol to frontend webserver
  3. # * load CGI plugin as default modifier1 to ease frontend setup
  4. plugins 0:cgi,router_cache
  5. threads = 8
  6. offload-threads = 8
  7. # serve static files directly (even better: serve by frontend webserver)
  8. check-static-docroot = 1
  9. static-map = /cgit-css/=/usr/share/cgit/
  10. static-map = /favicon.ico=/usr/share/cgit/favicon.ico
  11. static-map = /robots.txt=/usr/share/cgit/robots.txt
  12. cgi = /usr/lib/cgit/cgit.cgi
  13. ; cache indexes
  14. cache2 = name=indexes,items=100
  15. route = /$ cache:key=${REQUEST_URI},name=indexes
  16. route = /$ cachestore:key=${REQUEST_URI},name=indexes