forked from DTStack/ant-design-dtinsight-theme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdefault.conf
executable file
·27 lines (24 loc) · 898 Bytes
/
default.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
server {
listen 8989;
underscores_in_headers on;
charset utf-8;
gzip on;
gzip_comp_level 9;
gzip_min_length 1k;
gzip_types text/plain text/css application/x-javascript text/xml application/xml application/xml+rss text/javascript application/json application/javascript;
gzip_vary on;
gzip_http_version 1.1;
gzip_disable "MSIE [1-6]\.(?!.*SV1)";
proxy_set_header Host $host;
proxy_set_header RealIP $remote_addr;
proxy_set_header REMOTE-HOST $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_read_timeout 300;
location / {
try_files $uri /index.html;
location ~ .*\.(ico|js|css|gif|jpg|jpeg|png|bmp|swf)$ {}
root /home/app/ant-design-dtinsight-theme/dist;
rewrite ^/$ /docs/react/getting-started.html redirect;
}
error_page 500 502 503 504 404 http://172.16.100.225:8989/docs/react/getting-started.html;
}