blob: 5479496d28f95d198c5ed4e23463ef89c5af41d1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
user www-data;
worker_processes 4;
pid /var/run/nginx.pid;
events {
worker_connections 768;
}
http {
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 65;
types_hash_max_size 2048;
gzip on;
gzip_proxied any;
gzip_types text/plain text/css text/javascript application/x-javascript
text/xml application/xml image/svg+xml
application/vnd.ms-fontobject application/x-font-ttf font/opentype;
include /etc/nginx/mime.types;
default_type application/octet-stream;
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;
server {
location = favicon.ico { access_log off; log_not_found off; }
location /static {
alias /var/www/patchwork;
expires 3h;
}
location / {
include uwsgi_params;
uwsgi_pass unix:/run/uwsgi/patchwork.sock;
uwsgi_modifier1 30;
}
}
}
|