Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cant upload files larger than 100MB #32

Open
Minionflo opened this issue Jul 2, 2024 · 7 comments
Open

Cant upload files larger than 100MB #32

Minionflo opened this issue Jul 2, 2024 · 7 comments

Comments

@Minionflo
Copy link

No description provided.

@Minionflo
Copy link
Author

Im using Docker. My env vars are:

- BIN_LIMITS={form="100000 MiB"}
- BIN_CLIENT_DESC=Test
- BIN_BINARY_UPLOAD_LIMIT=100000

@JamsRepos
Copy link

Cloudflare DNS?

Image

@Minionflo
Copy link
Author

Minionflo commented Jan 29, 2025

No, same problem even with localhost

@EdTheLoon
Copy link

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;

@Minionflo
Copy link
Author

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

@Write
Copy link

Write commented Mar 5, 2025

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.

@Write
Copy link

Write commented Mar 6, 2025

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants