default_prod.conf 882 B

123456789101112131415161718192021
  1. server {
  2. listen 28133 default_server;
  3. client_max_body_size 500M;
  4. location / {
  5. gzip on;
  6. gzip_min_length 1k;
  7. gzip_buffers 4 16k;
  8. gzip_http_version 1.0;
  9. gzip_comp_level 2;
  10. 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;
  11. gzip_vary on;
  12. root /usr/share/nginx/html/;
  13. # 用于配合 browserHistory 使用
  14. try_files $uri $uri/ /index.html;
  15. index index.html index.htm;
  16. }
  17. error_page 500 502 503 504 403 404 405 301 /50x.html;
  18. location = /50x.html {
  19. root html;
  20. }
  21. }