diff options
Diffstat (limited to 'mkosi.extra/etc/nginx/sites-available/cgit')
-rw-r--r-- | mkosi.extra/etc/nginx/sites-available/cgit | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/mkosi.extra/etc/nginx/sites-available/cgit b/mkosi.extra/etc/nginx/sites-available/cgit new file mode 100644 index 0000000..c243ec9 --- /dev/null +++ b/mkosi.extra/etc/nginx/sites-available/cgit @@ -0,0 +1,16 @@ +server { + listen 8305 default_server; + listen [::]:8305 default_server; + server_name cgit; + + location / { + fastcgi_pass unix:/run/fcgiwrap.socket; + fastcgi_param SCRIPT_FILENAME /usr/lib/cgit/cgit.cgi; + fastcgi_param PATH_INFO $uri; + fastcgi_param QUERY_STRING $args; + } + + location /cgit { + alias /usr/share/cgit; + } +} |