server unix:/home/{{ user }}/hgwebfiles/socket fail_timeout=0;
server_name {{ subdomain }}.{{ hostname }};
access_log /var/log/nginx/{{ subdomain }}.{{ hostname }}.access.log;
error_log /var/log/nginx/{{ subdomain }}.{{ hostname }}.error.log;
root /home/{{ user }}/hg/mercurial/templates/;
proxy_set_header Host $host;
proxy_set_header X-Scheme $scheme;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Real-Ip $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
gzip_types text/plain text/css application/javascript application/x-javascript text/javascript;