2
0
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:
Pratik Vyas 2014-09-09 11:29:31 +05:30
parent 4e348490b7
commit 6e148971d2

View File

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