root-gg / plik

Plik is a temporary file upload system (Wetransfer like) in Go.
https://plik.root.gg
Other
1.47k stars 168 forks source link

Oops ! (413) Error. #464

Closed guillaumesoucy94 closed 1 year ago

guillaumesoucy94 commented 1 year ago

Hello,

I'm not able to upload files larger than 2GB and 700MB files fails due to a timeout.

20230116-054817

How to increase the upload file size ans increase the execution time?

Plik is behind Nginx Proxy Manager.

Thank-you,

Guillaume

bodji commented 1 year ago

Probably due to nginx buffering.

Can you modify the config file ?

If yes, you can add these lines :

proxy_buffering off;
proxy_request_buffering off;
proxy_http_version 1.1;
proxy_buffer_size 1M;
proxy_buffers 8 1M;
client_body_buffer_size 1M;
camathieu commented 1 year ago

Feel free to reopen

kerenon commented 1 year ago

For anyone running into the same issue: Just add "client_max_body_size 5000M;" on the advanced tab as custom nginx configuration. You can replace "5000M" to any size you require. This allows files up to 5GB.