blob: bd04928510dab8081971fcb487f4c54191ad77b1 (
plain)
- [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=${SERVER_NAME}:${REQUEST_URI},name=indexes
- route = /$ cachestore:key=${SERVER_NAME}:${REQUEST_URI},name=indexes
|