Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Mercurial frontend
- server {
- client_max_body_size 40M;
- listen 62.76.178.16:80;
- server_name hg.dzhon.in;
- access_log /home/hg/logs/nginx_access.log combined;
- error_log /home/hg/logs/nginx_error.log debug;
- location / {
- #limit write access
- limit_except GET {
- auth_basic "Restricted";
- auth_basic_user_file /etc/nginx/.hg.htpasswd;
- proxy_pass http://mercurial_backend;
- }
- proxy_pass http://127.0.0.1:7777;
- proxy_set_header X-Url-Scheme $scheme;
- proxy_buffering off;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement