mirror of
https://github.com/frappe/bench.git
synced 2025-01-24 23:48:24 +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) -%}
|
{% macro server_block(site, port=80, default=False, server_name=None, sites=None, dns_multitenant=False) -%}
|
||||||
server {
|
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;
|
client_max_body_size 4G;
|
||||||
{% if dns_multitenant and sites %}
|
{% if dns_multitenant and sites %}
|
||||||
server_name {% for site in sites %} {{ site.name }} {% endfor %};
|
server_name {% for site in sites %} {{ site.name }} {% endfor %};
|
||||||
@ -55,5 +55,5 @@ upstream frappe {
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if dns_multitenant and sites %}
|
{% if dns_multitenant and sites %}
|
||||||
{{ server_block(None,sites=sites, dns_multitenant=True) }}
|
{{ server_block(None, default=False, sites=sites, dns_multitenant=True) }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user