a1ex4 / ownfoil

Switch library manager, with a self-hosted Tinfoil Shop.
426 stars 44 forks source link

cannot install anything above 1GB #33

Closed webftpmaster closed 1 year ago

webftpmaster commented 1 year ago

Hi, The shop is working great, no complaints except that any NSP file above 1.0 GB starts to download then stops at 75% of the download progress bar and when I check the tinfoil console it says:

"network error 18: transfer closed with bytes remaining to read. code = 206"

webftpmaster commented 1 year ago

I figured it was the size limitation of my reverse proxy !

Just add this to the settings:

proxy_set_header Host $host; proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_max_temp_file_size 0; client_max_body_size 0;