uWSGI + nginx + git-http-backend

泄露秘密 提交于 2019-12-06 07:29:46

To fix the hang-after-POST issue, you need to add cgi-close-stdin-on-eof = true to your uWSGI configuration. So your config would look something like this:

[uwsgi]
plugins = cgi
procname-master = uwsgi %n
master = true
socket = /run/uwsgi/%n.sock

uid = http
gid = http
chmod-socket = 664

processes = 4
cheaper = 1

touch-reload = %p

cgi = /usr/lib/git-core/git-http-backend
logto = /var/log/uwsgi/git-http-backend.log

# The new configuration option here:
cgi-close-stdin-on-eof = true

NOTE: This option is only available in uWSGI >= 2.0.13.

I first read about this fix in the comments of this blog post: https://www.burgundywall.com/post/nginx-uwsgi-supervisord-git

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!