-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathnginx.conf
56 lines (55 loc) · 1.54 KB
/
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
55
56
user www-data;
worker_processes auto;
pid /run/nginx.pid;
events {
worker_connections 1024;
use epoll;
multi_accept on;
}
http {
access_log /dev/stdout;
error_log /dev/stdout;
sendfile on;
#tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 75;
types_hash_max_size 2048;
include /etc/nginx/mime.types;
default_type application/octet-stream;
index index.html index.htm;
server {
listen 80 default_server;
listen [::]:80 default_server;
client_max_body_size 900M;
server_name localhost;
gzip on;
gzip_proxied any;
gzip_vary on;
gzip_min_length 10240;
gzip_types
text/css
text/javascript
text/xml
text/plain
application/javascript
application/x-javascript
application/json;
gzip_disable "MSIE [1-6]\.";
root /var/www/html;
location / {
proxy_connect_timeout 600;
proxy_send_timeout 600;
proxy_read_timeout 600;
send_timeout 600;
include uwsgi_params;
uwsgi_pass unix:/tmp/uwsgi.socket;
}
location ~* ^.+\.(?:ico|css|js|gif|jpe?g|png)$ {
expires 1y;
add_header Pragma public;
add_header Cache-Control "public";
include uwsgi_params;
uwsgi_pass unix:/tmp/uwsgi.socket;
}
}
}