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 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.