# To allow special characters in headers ignore_invalid_headersoff; # Allow any size file to be uploaded. # Set to a value such as 1000m; to restrict file size to a specific value client_max_body_size10000m; # To disable buffering proxy_bufferingoff; proxy_request_bufferingoff; location / { proxy_set_header Host $http_host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme;
proxy_connect_timeout300; # Default is HTTP/1, keepalive is only enabled in HTTP/1.1 proxy_http_version1.1; proxy_set_header Connection ""; chunked_transfer_encodingoff;
# To allow special characters in headers ignore_invalid_headersoff; # Allow any size file to be uploaded. # Set to a value such as 1000m; to restrict file size to a specific value client_max_body_size10000m; # To disable buffering proxy_bufferingoff; proxy_request_bufferingoff; location / { proxy_set_header Host $http_host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme;
proxy_connect_timeout300; # Default is HTTP/1, keepalive is only enabled in HTTP/1.1 proxy_http_version1.1; proxy_set_header Connection ""; chunked_transfer_encodingoff;