Update to v8.10.0

This commit is contained in:
aapanel.com
2026-05-18 14:16:07 +08:00
parent b674fff397
commit 88012af9cf
2629 changed files with 53766 additions and 21411 deletions
+14 -3
View File
@@ -430,7 +430,7 @@ server {{
@param "data":{"参数名":""} <数据类型> 参数描述
@return dict{"status":True/False,"msg":"提示信息"}
'''
return public.ExecShell("nginx -V 2>&1| grep 'http_v3_module' -o")[0]
return public.is_nginx_http3()
#检测重写路径
def CheckRewriteDirArgs(self, get):
@@ -1891,6 +1891,11 @@ server {{
site_name=get.site_name,
force_conf=get.proxy_json_conf["ssl_info"]["force_ssl_conf"],
)
if public.is_nginx_http3():
http3_header = '''\n add_header Alt-Svc 'quic=":443"; h3=":443"; h3-29=":443"; h3-27=":443";h3-25=":443"; h3-T050=":443"; h3-Q050=":443";h3-Q049=":443";h3-Q048=":443"; h3-Q046=":443"; h3-Q043=":443"';'''
ssl_conf += http3_header + "\n quic_retry on;\n quic_gso on;"
if public.ng_ssl_early_data_enabled():
ssl_conf += "\n ssl_early_data on;"
if "If there is abnormal access to the reverse proxy website and the content has already been configured here, please prioritize checking if the configuration here is correct" in get.proxy_json_conf["http_block"]:
http_block = get.proxy_json_conf["http_block"]
@@ -2156,7 +2161,7 @@ server {{
listen_port=p,
) + "\n "
if get.proxy_json_conf["ssl_info"]["ssl_status"]:
if public.ExecShell("nginx -V 2>&1| grep 'http_v3_module' -o")[0] != "":
if public.is_nginx_http3():
ipv4_http3_ssl_port_conf = get.proxy_json_conf["ipv4_http3_ssl_port_conf"].format(
ipv4_port_conf=ipv4_port_conf,
https_port=get.proxy_json_conf["https_port"],
@@ -2165,7 +2170,7 @@ server {{
ipv6_port_conf=ipv6_port_conf,
https_port=get.proxy_json_conf["https_port"],
) + "\n "
port_conf = ipv4_http3_ssl_port_conf + ipv6_http3_ssl_port_conf + "\n http2 on;"
port_conf = ipv4_http3_ssl_port_conf + ipv6_http3_ssl_port_conf + "\n http2 on;\n http3 on;"
else:
ipv4_ssl_port_conf = get.proxy_json_conf["ipv4_ssl_port_conf"].format(
ipv4_port_conf=ipv4_port_conf,
@@ -2182,6 +2187,12 @@ server {{
site_name=get.site_name,
force_conf=get.proxy_json_conf["ssl_info"]["force_conf"]
)
if public.is_nginx_http3():
http3_header = '''\n add_header Alt-Svc 'quic=":443"; h3=":443"; h3-29=":443"; h3-27=":443";h3-25=":443"; h3-T050=":443"; h3-Q050=":443";h3-Q049=":443";h3-Q048=":443"; h3-Q046=":443"; h3-Q043=":443"';'''
ssl_conf += http3_header + "\n quic_retry on;\n quic_gso on;"
if public.ng_ssl_early_data_enabled():
ssl_conf += "\n ssl_early_data on;"
else:
port_conf = ipv4_port_conf + "\n" + ipv6_port_conf