server { listen 10006; gzip on; gzip_min_length 1k; gzip_comp_level 9; 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 on; gzip_disable "MSIE [1-6]\."; location / { root /mnt/project/business/vue/ruoyi; client_max_body_size 1000m; index index.html index.htm; add_header 'Access-Control-Allow-Origin' '*'; } location /prod-api { rewrite ^/api/(.*)$ /$1 break; proxy_pass http://127.0.0.1:9898; client_max_body_size 1000m; } location /file { root /mnt/; } error_page 405 =200 $uri; error_page 404 /404.html; error_page 500 502 503 504 /50x.html; location = /50x.html { root html; } }