-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.conf
38 lines (31 loc) · 807 Bytes
/
app.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
server {
##配置gzip
gzip on;
gzip_static on;
gzip_min_length 1k;
gzip_buffers 4 32k;
gzip_http_version 1.1;
gzip_comp_level 2;
gzip_types text/plain application/x-javascript text/css application/xml;
gzip_vary on;
gzip_disable "MSIE [1-6].";
listen 8080 default_server;
#listen [::]:80 default_server
server_name 0.0.0.0;
# 设置超时时间
client_header_timeout 300s;
client_body_timeout 300s;
send_timeout 300s;
location / {
root /usr/share/nginx/html/;
index index.html;
}
location /cloud-api {
rewrite ^/cloud-api(.*)$ $1 break;
proxy_pass http://172.17.0.1:3000;
}
location /admin/api {
proxy_pass http://172.17.0.1:3001;
}
keepalive_timeout 300s;
}