Skip to content

Instantly share code, notes, and snippets.

@nicdoye
Last active May 16, 2018 17:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nicdoye/04685034e918ec7e594b00d958fd5eaf to your computer and use it in GitHub Desktop.
Save nicdoye/04685034e918ec7e594b00d958fd5eaf to your computer and use it in GitHub Desktop.
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