default.conf 759 B

12345678910111213141516171819202122232425
  1. server {
  2. listen 80;
  3. server_name 192.168.20.56;
  4. root /usr/share/nginx/html;
  5. index index.html index.htm;
  6. # 3.8 以后必须开启压缩
  7. gzip on;
  8. gzip_static on;
  9. gzip_min_length 1k;
  10. gzip_comp_level 4;
  11. gzip_proxied any;
  12. gzip_types text/plain text/xml text/css;
  13. gzip_vary on;
  14. gzip_disable "MSIE [1-6]\.(?!.*SV1)";
  15. location ~* ^/(actuator|code|auth|admin|gen|daemon|tx|act|monitor|mp|job|pay) {
  16. proxy_pass http://192.168.20.56:9999;
  17. #proxy_set_header Host $http_host;
  18. proxy_connect_timeout 15s;
  19. proxy_send_timeout 15s;
  20. proxy_read_timeout 15s;
  21. proxy_set_header X-Real-IP $remote_addr;
  22. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  23. }
  24. }