dep updates/close #674 and parts of #673

Signed-off-by: Zoey <zoey@z0ey.de>
This commit is contained in:
renovate[bot]
2024-02-28 12:24:24 +00:00
committed by Zoey
parent 2a5a6a4ee5
commit 9e39ddb26b
11 changed files with 23 additions and 20 deletions

View File

@@ -1,4 +1,4 @@
{% if http2_support -%}
{% if http2_support == 1 or http2_support == true -%}
# Enable Brotli
include conf.d/include/brotli.conf;
{% endif %}
{% endif %}

View File

@@ -3,17 +3,18 @@
listen 80;
listen [::]:80;
{% if certificate %}
{% if certificate and certificate_id > 0 %}
listen 443 ssl;
listen [::]:443 ssl;
{% if hsts_subdomains %}
listen 443 quic;
listen [::]:443 quic;
{% if hsts_subdomains == 1 or hsts_subdomains == true %}
more_set_headers 'Alt-Svc: h3=":443"; ma=86400';
{% endif %}
{% endif %}
{% unless hsts_subdomains %}
{% else %}
more_clear_headers "Alt-Svc";
{% endunless %}
http3 off;
{% endif %}
{% endif %}
server_name {{ domain_names | join: " " }};

View File

@@ -1,6 +1,6 @@
{% include "_header_comment.conf" %}
{% if enabled %}
{% if enabled == 1 or enabled == true %}
server {
{% include "_listen.conf" %}
{% include "_certificates.conf" %}
@@ -11,7 +11,7 @@ server {
{{ advanced_config }}
include conf.d/include/acme-challenge.conf;
include conf.d/include/block-exploits.conf;
{% if use_default_location %}
{% if use_default_location == 1 or use_default_location == true %}
location / {
include conf.d/include/acme-challenge.conf;
root /html/404;

View File

@@ -1,6 +1,6 @@
{% include "_header_comment.conf" %}
{% if enabled %}
{% if enabled == 1 or enabled == true %}
server {
set $forward_scheme {{ forward_scheme }};
set $server "{{ forward_host }}";
@@ -33,7 +33,7 @@ server {
{{ advanced_config }}
{% if use_default_location %}
{% if use_default_location == 1 or use_default_location == true %}
location / {
include conf.d/include/acme-challenge.conf;

View File

@@ -1,6 +1,6 @@
{% include "_header_comment.conf" %}
{% if enabled %}
{% if enabled == 1 or enabled == true %}
server {
{% include "_listen.conf" %}
{% include "_certificates.conf" %}
@@ -11,7 +11,7 @@ server {
{{ advanced_config }}
include conf.d/include/acme-challenge.conf;
include conf.d/include/block-exploits.conf;
{% if use_default_location %}
{% if use_default_location == 1 or use_default_location == true %}
location / {
include conf.d/include/acme-challenge.conf;
{% if preserve_path == 1 or preserve_path == true %}

View File

@@ -2,7 +2,7 @@
# {{ incoming_port }} TCP: {{ tcp_forwarding }} UDP: {{ udp_forwarding }}
# ------------------------------------------------------------
{% if enabled %}
{% if enabled == 1 or enabled == true %}
{% if tcp_forwarding == 1 or tcp_forwarding == true -%}
server {
listen {{ incoming_port }};