mirror of
https://github.com/aljazceru/gitpear.git
synced 2025-12-17 06:04:25 +01:00
19 lines
543 B
Plaintext
19 lines
543 B
Plaintext
server {
|
|
listen 80;
|
|
server_name _;
|
|
|
|
# This is where the repositories live on the server
|
|
root /srv/repos/pear;
|
|
|
|
|
|
location ~ (/.*) {
|
|
fastcgi_pass unix:/var/run/fcgiwrap.socket;
|
|
include fastcgi_params;
|
|
fastcgi_param SCRIPT_FILENAME /usr/lib/git-core/git-http-backend;
|
|
# export all repositories under GIT_PROJECT_ROOT
|
|
fastcgi_param GIT_HTTP_EXPORT_ALL "";
|
|
fastcgi_param GIT_PROJECT_ROOT /srv/repos/pear;
|
|
fastcgi_param PATH_INFO $1;
|
|
}
|
|
}
|