-
-
Notifications
You must be signed in to change notification settings - Fork 642
Using https on nginx #754
Comments
See: https://github.com/geerlingguy/ansible-role-nginx#role-variables You can basically configure the server using whatever server block directives you need (setting up ciphers, cert paths, using port 443, http2, etc.). We should probably add an example in the docs for Nginx, like we have currently for Apache: http://docs.drupalvm.com/en/latest/extras/ssl/ |
Looked like the provisioning/templates/nginx-vhost.conf.j2 template did not support the extra_parameters as in the template for ansible-role-nginx. So created #761 |
D'oh... disadvantages of diverging from the upstream for a feature :P |
Yeah I think some more documentation here would be nice, or include it commented out in |
Just thought I'd share my findings as I've been having a look in to this today. Here's the host definition I added to
This definition is in addition to the default:
In the server block within
I'm guessing I needed to do this because both the default host definition and my SSL host definition share the same It seems as though both
I believe this is a bug and I'm happy to create a separate issue for it. However, I'm not 100% sure if this is an issue with Drupal VM or the Nginx Ansible role. Does anyone have any ideas? After restarting Nginx, I can now access my site over HTTP or HTTPS. |
Try adding extra_parameters similar to:
|
Thanks for the tip, @joestewart! The host definition for my Drupal site now looks like this:
I've also removed the default host definition as the one above handles both HTTP and HTTPS thanks to the I still had to manually add |
Added to the docs. At some point I'll also make the upstream Nginx role a little less obtuse in this regard. Right now, for my own projects, I supply my own Nginx server templates for these things, but it would be nice if it were managed by the role itself. |
Hi there,
We are trying to use nginx locally to properly mirror the Pantheon environment, but don't see a way to configure HTTPS in the config.yml. I looked at the playbook and don't see anything there. Am I just missing it?
The text was updated successfully, but these errors were encountered: