Update nginx.conf

This commit is contained in:
rad168
2024-12-17 13:39:26 +08:00
committed by GitHub
parent 508ecd8d81
commit a1652c41d8

View File

@@ -54,15 +54,6 @@ http {
include /etc/nginx/conf.d/*.conf;
include /etc/nginx/sites-enabled/*;
# 定义一个 map用来检查查询字符串或路径中是否包含 .ts 或 .aac
map $uri $is_media {
default 0;
~*\.ts$ 1; # 匹配路径中的 .ts 文件
~*\.aac$ 1; # 匹配路径中的 .aac 文件
~*ts=[^&]+\.ts$ 1; # 匹配查询字符串中的 ts 参数
~*aac=[^&]+\.aac$ 1; # 匹配查询字符串中的 aac 参数
}
server {
listen 20000;
server_name cdn.1678520.xyz; # 替换为您的域名