Last active
January 2, 2018 21:51
-
-
Save levlaz/9d2ee9cb1ea9b3dbbe73c66c9edafe38 to your computer and use it in GitHub Desktop.
cgit Debian
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#cgit config | |
#=========== | |
#see cgitrc(5) for details | |
#========================= | |
css=/cgit.css | |
logo=/cgit.png | |
virtual-root=/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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