Skip to content

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

Closed
@fribse

Description

@fribse

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions