CGIT + NGINX : Not able to push commit

Francis Daly francis at
Thu Nov 17 16:31:41 UTC 2022

On Fri, Nov 18, 2022 at 12:04:42AM +0800, Robbi wrote:

Hi there,

> Hi, I plan to setup my own git web using cgit. For now I able to clone but I
> not able to push changes.

What do the nginx logs say about this request?

Specifically, these headers:

> 23:24:26.253252 http.c:662              <= Recv header: cf-cache-status:
> 23:24:26.253252 http.c:662              <= Recv header: report-to: {"endpoints":[{"url":"https:\/\/\/report\/v3?s=fD6cyeHU7oKzC1IXV6hfWtcCXjRGLX7lNK39sEBhlpUSgG6%2F4V8RjFxV%2F20PIQPuFFJeb03csCfZb87f9Q7b7amvGWLhncuAPTZEZ9GraBoHdhs1MObZEz5FdlvADngnu8w%3D"}],"group":"cf-nel","max_age":604800}
> 23:24:26.253252 http.c:662              <= Recv header: server: cloudflare

are not obviously listed in your nginx config; so it might be that you
are talking to something other than the nginx server you think you are
talking to; and that other thing might be returning the 403.

If you can test talking to nginx directly, then maybe something will
show whether the 403 is coming from nginx, or is coming from the fastcgi
server that nginx, in turn, is talking to.

Good luck with it,

Francis Daly        francis at

More information about the nginx mailing list