You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
1.4 KiB

  1. # HTTP 1.1 support
  2. proxy_http_version 1.1;
  3. #proxy_buffering off;
  4. proxy_set_header Host $http_host;
  5. proxy_set_header Upgrade $http_upgrade;
  6. proxy_set_header Connection $proxy_connection;
  7. proxy_set_header X-Real-IP $remote_addr;
  8. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  9. proxy_set_header X-Forwarded-Proto $proxy_x_forwarded_proto;
  10. proxy_set_header X-Forwarded-Ssl $proxy_x_forwarded_ssl;
  11. proxy_set_header X-Forwarded-Port $proxy_x_forwarded_port;
  12. # Mitigate httpoxy attack (see README for details)
  13. proxy_set_header Proxy "";
  14. # aws default max_concurrent_requests 10
  15. # aws default multipart_threshold 8MB
  16. proxy_buffering on; # GET buffering or “X-Accel-Buffering” enables or disables buffering of a response;
  17. proxy_buffers 64 1m; # buffers used for reading a response from the proxied server, for a single connection
  18. proxy_buffer_size 8k; # maximum size of the data that nginx can receive from the server at a time is set
  19. proxy_busy_buffers_size 2m;
  20. proxy_request_buffering on; # PUT buffering
  21. client_body_buffer_size 64m; # buffer size for reading client request body
  22. client_max_body_size 64m;
  23. proxy_next_upstream error timeout non_idempotent http_500; # PUT request should be passed to the next server:
  24. proxy_connect_timeout 200ms;
  25. proxy_read_timeout 3s; #timeout is set only between two successive read operations
  26. proxy_send_timeout 3s; #timeout is set only between two successive write operations