change paths and make quic be enabled sepperat

This commit is contained in:
Zoey
2023-01-06 17:37:47 +01:00
parent c3f5d93acb
commit 5a89e9e8e8
13 changed files with 50 additions and 42 deletions

View File

@@ -1,10 +1,10 @@
listen 80;
listen [::]:80;
{% if certificate -%}
{% if certificate %}
listen 443 ssl{% if http2_support %} http2{% endif %};
listen [::]:443 ssl{% if http2_support %} http2{% endif %};
{% if http2_support -%}
{% if hsts_subdomains %}
listen 443 http3;
listen [::]:443 http3;

View File

@@ -45,7 +45,7 @@ server {
{%- if value == "html" %}
location / {
include conf.d/include/acme-challenge.conf;
alias /data/nginx/html/;
alias /data/etc/html/;
}
{%- endif %}
}

View File

@@ -40,7 +40,7 @@ server {
{% if access_list.items.length > 0 %}
# Authorization
auth_basic "Authorization required";
auth_basic_user_file /data/nginx/access/{{ access_list_id }};
auth_basic_user_file /data/etc/access/{{ access_list_id }};
{{ access_list.passauth }}
{% endif %}