Last active
May 16, 2018 17:20
-
-
Save nicdoye/04685034e918ec7e594b00d958fd5eaf to your computer and use it in GitHub Desktop.
nginx conf for Mercurial with uWSGI
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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