Guest User

nginx mercurial

a guest
Jan 24th, 2012
98
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #Mercurial frontend
  2.  
  3. server {
  4. client_max_body_size 40M;
  5. listen 62.76.178.16:80;
  6. server_name hg.dzhon.in;
  7.  
  8. access_log /home/hg/logs/nginx_access.log combined;
  9. error_log /home/hg/logs/nginx_error.log debug;
  10.  
  11. location / {
  12. #limit write access
  13. limit_except GET {
  14. auth_basic "Restricted";
  15. auth_basic_user_file /etc/nginx/.hg.htpasswd;
  16. proxy_pass http://mercurial_backend;
  17. }
  18. proxy_pass http://127.0.0.1:7777;
  19. proxy_set_header X-Url-Scheme $scheme;
  20. proxy_buffering off;
  21. }
  22. }
RAW Paste Data