forked from ISTI-ansible-roles/ansible-roles
Merge pull request 'nginx: It's now possible to customise the https port.' (#169) from adellam/ansible-roles:master into master
This commit is contained in:
commit
665b1441a5
|
@ -187,7 +187,11 @@ server {
|
||||||
|
|
||||||
{% if item.ssl_enabled %}
|
{% if item.ssl_enabled %}
|
||||||
server {
|
server {
|
||||||
|
{% if item.https_port is defined %}
|
||||||
|
listen {{ item.https_port }} {{ nginx_ssl_type }};
|
||||||
|
{% else %}
|
||||||
listen {{ https_port | default('443') }} {{ nginx_ssl_type }};
|
listen {{ https_port | default('443') }} {{ nginx_ssl_type }};
|
||||||
|
{% endif %}
|
||||||
server_name {{ item.server_name }} {% if item.serveraliases is defined %}{{ item.serveraliases }}{% endif %};
|
server_name {{ item.server_name }} {% if item.serveraliases is defined %}{{ item.serveraliases }}{% endif %};
|
||||||
|
|
||||||
{% if item.access_log is defined %}
|
{% if item.access_log is defined %}
|
||||||
|
|
Loading…
Reference in New Issue