BenoitCattie/puppet-nginx — pull request #13 by mc0e (2012-10-19 15:50:43+00:00)
Title: Update templates/fcgi_site.erb

Change the determining factor for deciding to use SSL.

This allows a user to put more than just the port into the listen directive. eg:

nginx::fcgi::site { 'default-ssl':
listen => '443 default_server',
...
}

Later versions of nginx support this mode of configuration.

When using a wildcard SSL cert it is possible to have multiple domains on a single IP, so the 'default_server' switch is significant. If running multiple sites on different IPs, then the user would want to set listen => 'example.com:443' which is also handled better with this change.