updated nginx template

This commit is contained in:
Paul 2021-04-20 23:27:54 +02:00
parent e48d110f05
commit 4dcabc2127

View File

@ -13,7 +13,7 @@ server {
{%- endif %} {%- endif %}
server_name {{ vhost_name }}; server_name {{ vhost_name }};
{%- if not proxy %} {%- if not proxy %}
root {{ root_dir }}; root "{{ root_dir }}";
{%- endif %} {%- endif %}
location / { location / {
{%- if proxy %} {%- if proxy %}
@ -26,7 +26,9 @@ server {
{%- if autoindex %} {%- if autoindex %}
autoindex on; autoindex on;
autoindex_localtime on; autoindex_localtime on;
{%- endif %} {%- else %}
index index.html index.rss;
{% endif %}
} }
{%- for dir in dirs %} {%- for dir in dirs %}