Created
December 17, 2014 02:20
-
-
Save sio4/61fc3d0331304daaa897 to your computer and use it in GitHub Desktop.
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
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