Skip to content

一分钟搭建影视站,支持Docker等部署方式

fix: update nginx configuration to add /s= path handling

developer8637e1c38289
diff --git a/nginx.conf b/nginx.conf
index 0f568b8..1496aec 100644
--- a/nginx.conf
+++ b/nginx.conf
@@ -2,11 +2,15 @@ server {
listen 80;
server_name localhost;
- #access_log /var/log/nginx/host.access.log main;
-
- resolver 114.114.114.114 8.8.8.8 valid=300s;
+ #access_log /var/log/nginx/host.access.log main; resolver 114.114.114.114 8.8.8.8 valid=300s;
resolver_timeout 5s;
+ # 添加 /s= 路径处理
+ location ~ ^/s= {
+ root /usr/share/nginx/html;
+ try_files /index.html =404;
+ }
+
# 创建代理路由
location /proxy/ {
# 设置CORS头部