Skip to content

Instantly share code, notes, and snippets.

@levlaz
Last active January 2, 2018 21:51
Show Gist options
  • Save levlaz/9d2ee9cb1ea9b3dbbe73c66c9edafe38 to your computer and use it in GitHub Desktop.
Save levlaz/9d2ee9cb1ea9b3dbbe73c66c9edafe38 to your computer and use it in GitHub Desktop.
cgit Debian
#cgit config
#===========
#see cgitrc(5) for details
#=========================
css=/cgit.css
logo=/cgit.png
virtual-root=/
worker_processes 1;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
gzip on;
server {
listen 80;
server_name git.example.com; # update to be your own domain
root /usr/share/cgit;
try_files $uri @cgit;
location @cgit {
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME /usr/lib/cgit/cgit.cgi;
fastcgi_param PATH_INFO $uri;
fastcgi_param QUERY_STRING $args;
fastcgi_param HTTP_HOST $server_name;
fastcgi_pass unix:/run/fcgiwrap.socket;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment