Anton Shestakov <av6@dwimlabs.net>, Sun, 21 May 2017 23:36:00 +0800
hgweb.conf: simple4server -> evolve.serveronly
server unix:/home/{{ hgweb_user }}/hgwebfiles/socket fail_timeout=0;
server_name {{ hgweb_subdomain }}.{{ hostname }};
access_log /var/log/nginx/{{ hgweb_subdomain }}.{{ hostname }}.access.log;
error_log /var/log/nginx/{{ hgweb_subdomain }}.{{ hostname }}.error.log;
root /home/{{ hgweb_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;