--- src/common/confs/server-http/ssl-certificate-lua.conf +++ src/common/confs/server-http/ssl-certificate-lua.conf @@ -17,7 +17,7 @@ {% endif %} ssl_ecdh_curve {{ resolve_ssl_ecdh_curve(SSL_ECDH_CURVE) }}; {% if "TLSv1.2" in SSL_PROTOCOLS +%} -ssl_dhparam /etc/nginx/dhparam; +ssl_dhparam /usr/local/etc/nginx/dhparam; {% if SSL_CIPHERS_CUSTOM|default('')|trim != "" %} ssl_ciphers {{ SSL_CIPHERS_CUSTOM }}; {% else %} @@ -51,12 +51,7 @@ {% endfor %} {% endif %} -{% if https_ports|length > 0 and "TLSv1.3" in SSL_PROTOCOLS and HTTP3 == "yes" and USE_PROXY_PROTOCOL == "no" %} -http3 on; - {% set http3_listen_options = " quic" %} - {% if MULTISITE == "no" and DISABLE_DEFAULT_SERVER == "no" and IS_LOADING == "no" %} - {% set http3_listen_options = http3_listen_options ~ " reuseport" %} - {% endif %} + {% for port in https_ports %} listen 0.0.0.0:{{ port }}{{ http3_listen_options }}; {% if USE_IPV6 == "yes" %} --- src/common/confs/server-http/ssl-certificate-lua.conf +++ src/common/confs/server-http/ssl-certificate-lua.conf @@ -37,7 +37,6 @@ {% endfor %} {% if https_ports|length > 0 %} {% if HTTP2 == "yes" %} -http2 on; {% endif %} {% set common_options = " ssl" %} {% if USE_PROXY_PROTOCOL == "yes" %} @@ -58,7 +57,6 @@ listen [::]:{{ port }}{{ http3_listen_options }}; {% endif %} {% endfor %} -add_header Alt-Svc 'h3=":{{ HTTP3_ALT_SVC_PORT }}"; ma=86400'; {% endif %} ssl_certificate_by_lua_block { --- src/common/confs/server-http/ssl-certificate-lua.conf +++ src/common/confs/server-http/ssl-certificate-lua.conf @@ -36,8 +36,6 @@ {% if https_ports.append(port) %}{% endif %} {% endfor %} {% if https_ports|length > 0 %} - {% if HTTP2 == "yes" %} - {% endif %} {% set common_options = " ssl" %} {% if USE_PROXY_PROTOCOL == "yes" %} {% set common_options = common_options ~ " proxy_protocol" %} @@ -51,13 +49,6 @@ {% endif %} - {% for port in https_ports %} -listen 0.0.0.0:{{ port }}{{ http3_listen_options }}; - {% if USE_IPV6 == "yes" %} -listen [::]:{{ port }}{{ http3_listen_options }}; - {% endif %} - {% endfor %} -{% endif %} ssl_certificate_by_lua_block { local class = require "middleclass"