Skip to content

Instantly share code, notes, and snippets.

@nicdoye

nicdoye/nginx-hg.conf

Last active May 16, 2018
Embed
What would you like to do?
nginx conf for Mercurial with uWSGI
location /hg/ {
uwsgi_pass unix:/run/uwsgi/hgweb.sock;
include uwsgi_params;
auth_basic "Mercurial repository";
auth_basic_user_file /etc/nginx/htpasswd;
client_max_body_size 0;
}
location /hg/static {
alias /usr/lib64/python2.7/site-packages/mercurial/templates/static/;
expires 30d;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.