26:b5b0e88c2886
Anton Shestakov <av6@dwimlabs.net>, Sun, 21 May 2017 23:36:00 +0800
hgweb.conf: simple4server -> evolve.serveronly

next change 27:1a8b9c306e43
previous change 17:5a3522b5fd5c

roles/hgweb/templates/etc/nginx/sites-available/hgweb

Permissions: -rw-r--r--

Other formats: Feeds:
upstream hgweb {
server unix:/home/{{ hgweb_user }}/hgwebfiles/socket fail_timeout=0;
}
server {
server_name {{ hgweb_subdomain }}.{{ hostname }};
listen 80;
listen [::]:80;
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/;
location / {
proxy_pass http://hgweb;
proxy_redirect off;
proxy_buffering off;
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;
}
location /static {
gzip on;
gzip_types text/plain text/css application/javascript application/x-javascript text/javascript;
gzip_vary on;
expires 30d;
}
}