Cant upload files larger than 100MB
Im using Docker. My env vars are:
- BIN_LIMITS={form="100000 MiB"}
- BIN_CLIENT_DESC=Test
- BIN_BINARY_UPLOAD_LIMIT=100000
Cloudflare DNS?
No, same problem even with localhost
I would check your nginx block/apache configs. I had to edit my nginx block to include the below for a 128MB limit:
client_max_body_size 128M;
im not using a reverse proxy, the error still happens if i run it localy on my computer and connect to it via 127.0.0.1
Can confirm the issue. Uploading file trough my HAPRoxy > Nextcloud without any problem. Uploading them the docker-compose.yml'version of this project, however is stuck to 100MB. max.
To solve it :
At this line https://github.com/wantguns/bin/blob/master/src/main.rs#L68
Replace
#[clap(short, long, default_value_t = 100)]
With
#[clap(short, long, default_value_t = 100, env)]
Which actually allows binary_upload_limit to be set via your env VARS.
You can then add this env your docker-compose env vars :
- BINARY_UPLOAD_LIMIT=1000
In your docker-compose to set the limit at 1GiB just fine.
You can git clone this project to "./bin", change the source code, and change your docker-compose.yml as such :
services:
pastebin:
image: my_bin:latest
build: ./bin/
[...]
docker comose up -d, will build and up the project fine.