Skip to content

Instantly share code, notes, and snippets.

Created Dec 17, 2014
What would you like to do?
server {
# git via nginx ------------------------------------------------------
location ~ /git(/.*) {
auth_basic "";
auth_basic_user_file /var/git/.htpasswd;
fastcgi_pass unix:/var/run/fcgiwrap.socket;
fastcgi_param SCRIPT_FILENAME /usr/lib/git-core/git-http-backend;
fastcgi_param GIT_HTTP_EXPORT_ALL "";
fastcgi_param GIT_PROJECT_ROOT /var/git;
fastcgi_param PATH_INFO $1;
include fastcgi_params;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment