标签:inf 请求 pes write 报告 text 后端 jpeg javascrip
通过使用Ngnix的路径转发,我们会自动将/api目录下的所有请求转发到后端
server {
gzip on;
gzip_min_length 1k;
gzip_buffers 4 16k;
gzip_comp_level 2;
gzip_types text/plain application/javascript application/x-javascript text/css application/xml text/javascript application/x-httpd-php image/jpeg image/gif image/png;
gzip_vary off;
gzip_disable "MSIE [1-6]\.";
client_max_body_size 50m;
listen 8080;
root /app/dist;
index index.html;
location /api/ {
rewrite /api/(.*) /$1 break;
proxy_pass http://localhost:8000/;
}
}
标签:inf 请求 pes write 报告 text 后端 jpeg javascrip
原文地址:https://www.cnblogs.com/godlovesme/p/13223867.html