nickjj / ansible-nginx

Install and configure nginx (SSL A+ by default) with Ansible.
MIT License
73 stars 37 forks source link

Modifications to allow for multiple ssl certs and servers with only upstreams #16

Open ScuttleSE opened 7 years ago

ScuttleSE commented 7 years ago

I fixed the SSL variables, and added a few if-statements that'll only play with the site is defined as "only_upstream"

nickjj commented 7 years ago

What if it worked naturally when root isn't defined in the vhost?

You could test if root is defined, instead of the custom variable.

Then it works without additional configuration or documentation.

ScuttleSE commented 7 years ago

Hm, true, that would accomplish the same thing