entrypoint.sh
+6
-2
diff --git a/entrypoint.sh b/entrypoint.sh
index 73e4af1..883091f 100644
@@ -1,11 +1,15 @@
#!/bin/bash
set -e
# Create directory for the socket
mkdir -p /var/run/fcgiwrap
chown git:git /var/run/fcgiwrap
# Start fcgiwrap as git user
spawn-fcgi -s /var/run/fcgiwrap.socket -U nginx -u git -g git -- /usr/sbin/fcgiwrap
spawn-fcgi -s /var/run/fcgiwrap/fcgiwrap.socket -U nginx -u git -g git -- /usr/sbin/fcgiwrap
# Make sure nginx can access the socket
chmod 660 /var/run/fcgiwrap.socket
chmod 660 /var/run/fcgiwrap/fcgiwrap.socket
# Start nginx in foreground
exec nginx -g 'daemon off;'
nginx.conf
+1
-1
diff --git a/nginx.conf b/nginx.conf
index 1fba06f..cafa9cd 100644
@@ -23,7 +23,7 @@ http {
fastcgi_param GIT_HTTP_EXPORT_ALL "0";
fastcgi_param GIT_PROJECT_ROOT /git;
fastcgi_param PATH_INFO $1;
fastcgi_pass unix:/var/run/fcgiwrap.socket;
fastcgi_pass unix:/var/run/fcgiwrap/fcgiwrap.socket;
}
}
}