-
Notifications
You must be signed in to change notification settings - Fork 0
/
nginx.conf
54 lines (39 loc) · 872 Bytes
/
nginx.conf
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
47
48
49
50
51
52
53
54
user root;
worker_processes 4;
pid /run/nginx.pid;
events {
worker_connections 768;
}
http {
sendfile on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 65;
include /etc/nginx/mime.types;
default_type application/octet-stream;
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;
gzip on;
gzip_disable "msie6";
include /etc/nginx/conf.d/*.conf;
include /etc/nginx/sites-enabled/*;
proxy_cache_path /var/lib/nginx/backendcache levels=1:2 keys_zone=backendcache:50m;
proxy_cache_valid 200 302 10m;
server {
location ~^/(uploads)/(.+) {
root /root/askzaytsev;
}
location ~ \.(.+) {
root /root/askzaytsev/static;
expires 4M;
add_header Cache-Control public;
}
location / {
proxy_cache backendcache;
proxy_pass http://127.0.0.1:8081;
}
}
upstream app_servers {
server 127.0.0.1:8081;
}
}