proxy.conf 759 B

12345678910111213141516171819202122
  1. proxy_redirect off;
  2. proxy_set_header Host $host;
  3. proxy_set_header X-Real-IP $remote_addr;
  4. proxy_set_header User-Agent $http_user_agent;
  5. proxy_set_header Referer $http_referer;
  6. proxy_set_header Cookie $http_cookie;
  7. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  8. #客户端上传文件的最大大小
  9. client_max_body_size 10m;
  10. client_body_buffer_size 128k;
  11. #浏览器等待的最长超时时间
  12. proxy_connect_timeout 30s;
  13. #后端服务器发送的超时时间
  14. proxy_send_timeout 20s;
  15. #后端服务器的读取超时时间
  16. proxy_read_timeout 20s;
  17. #缓冲区大小
  18. proxy_buffer_size 256k;
  19. #缓冲区个数
  20. proxy_buffers 4 256k;