client_max_body_size 0; # Git pushes can be massive, just to make sure nginx doesn't suddenly cut the connection add this. include fastcgi_params; # Include the default fastcgi configs fastcgi_param SCRIPT_FILENAME /usr/libexec/git-core/git-http-backend; # Tells fastcgi to pass the request to the git http backend executable. fastcgi_param PATH_INFO $uri; # Takes the capture group from our location directive and gives git that. fastcgi_param REMOTE_USER $remote_user; # Forward REMOTE_USER as we want to know when we are authenticated # IMPORTANT NOTE: Other required fastcgi_params have been defined as environment variables in the runner container and hence need not be passed here.