mirror of
https://github.com/frappe/bench.git
synced 2024-11-13 16:56:33 +00:00
fix blank port in dns_multitenant nginx conf
This commit is contained in:
parent
4e348490b7
commit
6e148971d2
@ -5,7 +5,7 @@ upstream frappe {
|
||||
|
||||
{% macro server_block(site, port=80, default=False, server_name=None, sites=None, dns_multitenant=False) -%}
|
||||
server {
|
||||
listen {{ site.port if not default else port }} {% if default %} default {% endif %};
|
||||
listen {{ site.port if not default and site.port else port }} {% if default %} default {% endif %};
|
||||
client_max_body_size 4G;
|
||||
{% if dns_multitenant and sites %}
|
||||
server_name {% for site in sites %} {{ site.name }} {% endfor %};
|
||||
@ -55,5 +55,5 @@ upstream frappe {
|
||||
{% endif %}
|
||||
|
||||
{% if dns_multitenant and sites %}
|
||||
{{ server_block(None,sites=sites, dns_multitenant=True) }}
|
||||
{{ server_block(None, default=False, sites=sites, dns_multitenant=True) }}
|
||||
{% endif %}
|
||||
|
Loading…
Reference in New Issue
Block a user