Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom nginx configuration #75

Closed
cytopia opened this issue May 30, 2017 · 9 comments
Closed

Custom nginx configuration #75

cytopia opened this issue May 30, 2017 · 9 comments

Comments

@cytopia
Copy link
Owner

cytopia commented May 30, 2017

@ilsenem continued from here: #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

@cytopia cytopia self-assigned this May 30, 2017
@ilsenem
Copy link

ilsenem commented May 30, 2017

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.

@cytopia
Copy link
Owner Author

cytopia commented Jul 4, 2017

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

@degoya
Copy link

degoya commented Sep 18, 2017

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

@cytopia
Copy link
Owner Author

cytopia commented Sep 18, 2017

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.

@cytopia
Copy link
Owner Author

cytopia commented Sep 26, 2017

@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: #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)

@cytopia
Copy link
Owner Author

cytopia commented Sep 26, 2017

Is going to be included in the upcoming release: #130

@cytopia
Copy link
Owner Author

cytopia commented Sep 29, 2017

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

@cytopia
Copy link
Owner Author

cytopia commented Oct 3, 2017

@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

@cytopia
Copy link
Owner Author

cytopia commented Oct 10, 2017

Merged and ready in v0.12

@cytopia cytopia closed this as completed Oct 10, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants