Code Monkey home page Code Monkey logo

Comments (1)

elrido avatar elrido commented on June 12, 2024

No need to modify the image. To modify files shipped in it, you will want to grab a copy of the file in question (found here), modify it, and attach it to the original location (/etc/nginx/nginx.conf) into the image. In UNIX and Linux you can mount over single files or directories as many times as needed, though normally this not done, since it wastes space (two versions of the file).

The only downside is that you may occasionally have to update the config file, should a new nginx change the config format or some of the core default settings provided in it (the same is true for our project, since we replace the version shipped by alpine).

Alternatively, you may want to have a look at the sister image that uses nginx unit instead of the nginx webserver. It's single configuration file for unit and PHP is found here. You would want to change the max_body_size as well as the two PHP settings post_max_size and upload_max_filesize and can either do so by attaching your own version into the image as /var/lib/unit/conf.json or using the configuration socket in the image at /run/control.unit.sock to push configuration changes at runtime (useful to test changes without restarting the service) - see also the section in the readme doc.

from docker-nginx-fpm-alpine.

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.