Skip to content
New issue

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

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

Already on GitHub? # to your account

Uploading large files (>10M) through nginx proxy? #207

Closed
fribse opened this issue May 29, 2020 · 2 comments
Closed

Uploading large files (>10M) through nginx proxy? #207

fribse opened this issue May 29, 2020 · 2 comments

Comments

@fribse
Copy link

fribse commented May 29, 2020

Error description:

Error
image
When uploading a file I get the above message

Steps to reproduce

Upload a >2M file to a site behind it

Expected result

An OK

Error result

Failed upload

Comments

Hi Evert

I'm trying to get it to allow uploading some really large files through this.
I have a website in DMZ that is forwarded through an nginx behind your setup.
So your nginx forwards to my nginx that forwards to an inside site.

The docker-compose file I've made for this:

# web forward for site
  site-url:
    image: nginx
    container_name: site-url
    restart: always
    volumes:
      - "/docker/site:/etc/nginx/conf.d"
#    depends_on:
#      - name_of_all_your_other_services
    environment:
      VIRTUAL_HOST: siteurl
      LETSENCRYPT_HOST: siteurl
      LETSENCRYPT_EMAIL: email

In 'my own' nginx conf.d I've given the line:
client_max_body_size 100M;

To solve this, but how do I get this added to the hosts that is automatically generated by the environment settings?

@fribse
Copy link
Author

fribse commented May 29, 2020

Doh, got it working, never mind :-D

@fribse fribse closed this as completed May 29, 2020
@johngrasty
Copy link

@fribse What did you do to get it working?

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

No branches or pull requests

2 participants