Devilbox: Custom nginx configuration

Created on 30 May 2017  路  9Comments  路  Source: cytopia/devilbox

@ilsenem continued from here: https://github.com/cytopia/devilbox/issues/73

Another one. Problem was with max upload size in first place to let me upload large dump to MySQL through adminer. PHP was the first gate and now nginx get in the way. Do i have to change configuration inside .devilbox/etc/* folder or there is an easy way?

Yes, unfortunately for now, this is the only place to adjust HTTPD configuration.
Could you let me know what values you need to change.

Edit:

For now you should use .devilbox/etc/<server>/00-defaults.conf

I am also about to re-write the HTTPD servers so configurations can be done in the cfg/ directory

devilbox-release docker enhancement feature waiting for reply

Most helpful comment

@ilsenem just to give you some heads-up. This is currently under development.

All 9 comments

Configuration should look like this:

server {
    ...
    client_max_body_size <value>m;
    ...
}

If it is possible to move such frequently modified values to .env file, it would be great! Some Vagrant boxes, like Homestead have settings similar to mentioned above.

@ilsenem just to give you some heads-up. This is currently under development.

how is the progress on this? looking for custom nginx configuration for each project setup.

Hi guys, to give you some heads up, it is still under development, but shouldn't been too long until its finished (~4 weeks).

I am currently refactoring and modulizing everything at https://github.com/devilbox and put each tool in separate directories so it is either for people to contribute and find errors.

Current work involves making the customization of vhosts work as well as basing all webservers on the official docker container rather than building them from scratch.

@ilsenem @degoya
To keep you guys up to date with the progress. Listing available/open/closed pull request for that feature.

I created a pull request for the upcoming devilbox version: https://github.com/cytopia/devilbox/pull/130
It already contains the setup (Be aware, that apache does not currently work).

You can already check it out:

git fetch --all
git checkout REL-0.12

Note that the env-example file has been changed. So you have to adjust your local .env file accordingly with the new settings.

How to adjust per vhost?

In your projects dir under data/<project-dir> create a folder called .devilbox. Inside this folder copy all 3 files from: https://github.com/devilbox/vhost-gen/tree/master/etc/templates

Adjust the conf.nginx.yml and restart the devilbox (or rename the project folder, that way nginx will also reload the new settings)

Is going to be included in the upcoming release: https://github.com/cytopia/devilbox/pull/130

@ilsenem @degoya Could you give it a try and report back if it works as expected for you.

@ilsenem @degoya can you check out this documentation part and see if it is easy to understand how to change the configuration: https://github.com/cytopia/devilbox/blob/c87201db13b43de0dc73098602f1357788f6a886/docs/Configure.md#433-customize-the-vhost-configuration

Merged and ready in v0.12

Was this page helpful?
0 / 5 - 0 ratings

Related issues

taliptako picture taliptako  路  4Comments

hurrtz picture hurrtz  路  5Comments

zack6849 picture zack6849  路  5Comments

fkaminski picture fkaminski  路  4Comments

StanMenten99 picture StanMenten99  路  6Comments