nginx: It's now possible to customise the https port.

This commit is contained in:
Andrea Dell'Amico 2020-03-31 16:38:07 +02:00
parent 1f7d7ac082
commit 54155b9672
1 changed files with 4 additions and 0 deletions

View File

@ -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 %}