40 lines
1.0 KiB
Nginx Configuration File
40 lines
1.0 KiB
Nginx Configuration File
server {
|
|
listen 80;
|
|
server_name _;
|
|
# gzip config
|
|
gzip on;
|
|
gzip_min_length 1k;
|
|
gzip_comp_level 6;
|
|
gzip_types text/plain text/css text/javascript application/json application/javascript application/x-javascript application/xml;
|
|
gzip_vary on;
|
|
gzip_disable "MSIE [1-6]\.";
|
|
|
|
root /usr/share/nginx/html/dist;
|
|
include /etc/nginx/mime.types;
|
|
|
|
index index.html index.htm;
|
|
try_files $uri $uri/ @router;
|
|
location @router {
|
|
rewrite ^.*$ /index.html last;
|
|
}
|
|
# location /api {
|
|
# proxy_pass https://preview.pro.antdv.com/api;
|
|
# proxy_set_header X-Forwarded-Proto $scheme;
|
|
# proxy_set_header X-Real-IP $remote_addr;
|
|
# }
|
|
location /api/live {
|
|
proxy_pass http://120.77.165.155:8100;
|
|
}
|
|
location /api/Complaint {
|
|
proxy_pass http://120.77.165.155:8095;
|
|
}
|
|
location /api/Wework {
|
|
proxy_pass http://cmsext.soft.dn8188.com;
|
|
}
|
|
location /api {
|
|
proxy_pass http://120.77.165.155:8089;
|
|
}
|
|
|
|
}
|
|
|