Coder Social home page Coder Social logo

Comments (1)

toby200 avatar toby200 commented on May 28, 2024

Hey, I've just updated to the latest version (1.2.0) using docker-compose (via portainer) and am seeing the same issue. Fix is below

I've tried using version 1.1.0 and that has the same issue, but version 1.0.1 works ok so have currently reverted to that.
For comparison, the 1.0.1 logs show:

/docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration
/docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/
/docker-entrypoint.sh: Launching /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh
10-listen-on-ipv6-by-default.sh: info: /etc/nginx/conf.d/default.conf is not a file or does not exist
/docker-entrypoint.sh: Launching /docker-entrypoint.d/20-envsubst-on-templates.sh
/docker-entrypoint.sh: Launching /docker-entrypoint.d/30-tune-worker-processes.sh
/docker-entrypoint.sh: Configuration complete; ready for start up

So the first difference appears to be this line in 1.1/1.2 that wasn't in 1.0.1:
20-envsubst-on-templates.sh: Running envsubst on /etc/nginx/templates/nginx.conf.template to /etc/nginx/conf.d/nginx.conf
followed by the warning about client_max_body_size.

Looking for client_max_body_size in the code, I can see the docker-compose.yml was changed under EFRS-1186:

 environment:
      - CLIENT_MAX_BODY_SIZE=${client_max_body_size}
      became
      - CLIENT_MAX_BODY_SIZE=${max_request_size}

So basically - solution is to update your docker-compose file, and also make sure you have the latest .env variables from 1.2 branch. As of 1.2 the default variable is max_request_size = 10M. Or you could add this directly in your docker file

 environment:
      - CLIENT_MAX_BODY_SIZE=10M

from compreface.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.