root-gg / plik

Plik is a temporary file upload system (Wetransfer like) in Go.

Home Page:https://plik.root.gg

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Oops ! (413) Error.

guillaumesoucy94 opened this issue · comments

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

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;

Feel free to reopen

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.