Skip to content

Instantly share code, notes, and snippets.

@nicdoye
Created May 16, 2018 17:28
Show Gist options
  • Save nicdoye/7f0e5826fd57a1750a7f07a9755fcf06 to your computer and use it in GitHub Desktop.
Save nicdoye/7f0e5826fd57a1750a7f07a9755fcf06 to your computer and use it in GitHub Desktop.
uWSGI config for mercurial
[uwsgi]
uid = uwsgi
gid = uwsgi
pidfile = /run/uwsgi/uwsgi.pid
emperor = /etc/uwsgi.d
stats = /run/uwsgi/stats.sock
chmod-socket = 660
emperor-tyrant = true
cap = setgid,setuid
; https://www.mercurial-scm.org/wiki/PublishRepositoriesOnNginx
plugins = python
socket = /run/uwsgi/hgweb.sock
chdir = /var/www/hg
wsgi-file = hgweb.wsgi
; https://stackoverflow.com/questions/15878176/uwsgi-invalid-request-block-size
; http://uwsgi-docs.readthedocs.io/en/latest/ThingsToKnow.html
buffer-size = 65535
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment