ruoyi.conf 819 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. server {
  2. listen 10006;
  3. gzip on;
  4. gzip_min_length 1k;
  5. gzip_comp_level 9;
  6. 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;
  7. gzip_vary on;
  8. gzip_disable "MSIE [1-6]\.";
  9. location / {
  10. root /mnt/project/business/vue/ruoyi;
  11. client_max_body_size 1000m;
  12. index index.html index.htm;
  13. add_header 'Access-Control-Allow-Origin' '*';
  14. }
  15. location /prod-api {
  16. rewrite ^/api/(.*)$ /$1 break;
  17. proxy_pass http://127.0.0.1:9898;
  18. client_max_body_size 1000m;
  19. }
  20. location /file {
  21. root /mnt/;
  22. }
  23. error_page 405 =200 $uri;
  24. error_page 404 /404.html;
  25. error_page 500 502 503 504 /50x.html;
  26. location = /50x.html {
  27. root html;
  28. }
  29. }