| 1 | server { |
| 2 | listen 80; |
| 3 | server_name domain.tld; |
| 4 | access_log /var/log/nginx/patchwork.log; |
| 5 | error_log /var/log/nginx/patchwork-error.log; |
| 6 | |
| 7 | tcp_nopush on; |
| 8 | tcp_nodelay on; |
| 9 | keepalive_timeout 65; |
| 10 | types_hash_max_size 2048; |
| 11 | |
| 12 | gzip on; |
| 13 | gzip_proxied any; |
| 14 | gzip_types text/plain text/css text/javascript application/x-javascript |
| 15 | text/xml application/xml image/svg+xml |
| 16 | application/vnd.ms-fontobject application/x-font-ttf font/opentype; |
| 17 | |
| 18 | location = favicon.ico { |
| 19 | access_log off; |
| 20 | log_not_found off; |
| 21 | } |
| 22 | |
| 23 | location /static { |
| 24 | alias /usr/share/webapps/patchwork/htdocs; |
| 25 | expires 3h; |
| 26 | } |
| 27 | |
| 28 | location / { |
| 29 | include uwsgi_params; |
| 30 | uwsgi_pass unix:/run/uwsgi/patchwork.sock; |
| 31 | uwsgi_modifier1 30; |
| 32 | } |
| 33 | } |