blob: bbab6f0e47eea532771f6000852394e1d1973fe9 (
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
42
43
44
45
46
|
user www-data;
worker_processes 5;
error_log /var/log/nginx/error.log;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
# multi_accept on;
}
http {
include /etc/nginx/mime.types;
access_log /var/log/nginx/access.log;
sendfile on;
#tcp_nopush on;
#keepalive_timeout 0;
keepalive_timeout 65;
tcp_nodelay on;
gzip on;
gzip_disable "MSIE [1-6]\.(?!.*SV1)";
include /etc/nginx/conf.d/*.conf;
server {
listen 80;
location ^~* ^/(avatars|images)/ {
root /home/ubuntu/dumpfm;
expires 30d;
}
location ^~* ^/static/ {
root /home/ubuntu/dumpfm;
expires 30m;
}
location / {
proxy_pass http://127.0.0.1:8080;
}
}
}
|