Comments (1)
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)
- Disable/remove nginx for services that already provide a reverse proxy? HOT 4
- Size limit not reflected in php.ini HOT 4
- ZAP Full Scan Report HOT 3
- upgrade to PHP 8.2
- Wrong size limit error HOT 3
- Feature Request: Use AWS IAM Role to access S3 buckets HOT 8
- Could not create paste - permissions error? HOT 4
- Can be deleted. HOT 1
- ZAP Full Scan Report
- php-fpm81: No such file or directory HOT 5
- Invoking dark mode through environment variables HOT 2
- ZAP Full Scan Report HOT 3
- Getting SLSA ("Supply-chain Levels for Software Artifacts") compliance HOT 2
- docker image creates volume HOT 2
- docker image privatebin/fs:latest still includes zlib-1.2.13-1.js (instead of 1.3) HOT 5
- Dark mode HOT 1
- ZAP Full Scan Report
- ZAP Full Scan Report HOT 2
- Getting `reading response header from upstream` error when trying to create new secrets with 1.7.2 on S3 HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-nginx-fpm-alpine.