-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Plugin nginx-vhosts includes files in folder nginx.conf.d #579
Conversation
Once this PR is merged, we can add https://github.com/neam/dokku-nginx-vhosts-custom-configuration to the list of Dokku plugins in the wiki. |
CI is currently broken - see #568 for details. I haven't had time to try and diagnose lately |
This file will also need to be updated in most use cases I would imagine: https://github.com/wmluke/dokku-domains-plugin/blob/master/commands#L62 |
@alecgorge, no I rewrote the dokku-domains-plugin to not replace the existing configuration, see wmluke/dokku-domains-plugin#11 (Fixes wmluke/dokku-domains-plugin#10) |
If I'd want to have two server names like
Would this be possible to do with the change suggested in this branch? |
@javoire: This PR does not make it possible to add an extra server_name configuration directive in order to configure multiple domains. For that, you should instead check out https://github.com/neam/dokku-custom-domains |
Ok thanks :) Jonatan Dahl http://www.linkedin.com/pub/jonatan-dahl/31/127/813 On 22 May 2014 00:12, Fredrik Wollsén notifications@github.com wrote:
|
Can this PR be accepted? :) |
+1 |
+1! |
+1 |
Another way to set per-app nginx configs (including multiple domains) is using: https://github.com/mikexstudios/dokku-nginx-alt |
Yes, I tried that first but using it meant swapping out a huge portion of what is considered dokku core. This PR is a one-line change meant to make it easy for plugins to set per-app nginx configuration directives. |
👍 |
Any chance on this getting merged soon? I need to increase the request size limit, and something like this seems the easiest path forward. |
+1 for getting this merged. We use this patch together with https://github.com/neam/dokku-nginx-vhosts-custom-configuration for increasing upload size limits and timeout values. |
I have manually inserted this change into /dokku/plugins/nginx-vhosts/post-deploy on my server. I'm a bit new to Docker and Dokku, so it might be something obvious. Any suggestions? Thanks in advance. |
@nikfalstie: The default location for the nginx-vhost plugin is /var/lib/dokku/plugins/nginx-vhosts - try modifying it there. |
Btw, we have used this patch in https://github.com/neam/dokku-host-provisioning for about 4.5 months now and it 1. works great and haven't caused any side effects for us and 2. is essential for us in order to for instance allow large file uploads (even if client_max_body_size is increased in the the buildpack nginx configuration, file uploads otherwise fails since the vhost nginx configuration limits this before it even gets to the buildpack's nginx configuration). |
I knew it was something stupid - just thought I had looked everywhere for other post-deploy files. Thanks a lot for your help :) |
@progrium: Any chance merging this for 0.3.0 release? |
@motin Until this is merged, it would probably be a good idea to add a note to https://github.com/neam/dokku-nginx-vhosts-custom-configuration that the plugin does not work without this patch. I stumbled on the Git repo and didn’t realise it didn’t work on the current release version of Dokku and others might lose time over that also. Thanks for the awesome plugin + patch, by the way :) |
I need to make a release (0.2.4) but this will likely be out for 0.3.0. |
@aral Glad you find it useful :) The fact that the plugin requires this PR is stated in the docs: https://github.com/progrium/dokku/blob/master/docs/plugins.md#dokku-features and hopefully this will be merged soon so that it doesn't need it anymore. I'll update the PR to include change in docs.
@josegonzalez It doesn't seem to be included in 0.3.0, any idea of when it will be merged? |
…s made available in dokku core 0.3.1
3537c90
to
26a9e2f
Compare
Btw, this is a 100% backward-compatible change, so it could be released in 0.3.1 |
Plugin nginx-vhosts includes files in folder nginx.conf.d
Merged, it'll be out in 0.3.1. Thanks for the PR. |
This allows dokku ops and other plugins to set custom per-app nginx configuration without having to overwrite the file post-deploy or in nginx-pre-reload.