diff --git a/nginx.example.conf b/nginx.example.conf index a748323..f177390 100644 --- a/nginx.example.conf +++ b/nginx.example.conf @@ -3,7 +3,7 @@ server { listen [::]:80; server_name _; index index.php index.html index.htm default.php default.htm default.html; - root /app; + root /app/web; location /api/ { proxy_pass http://127.0.0.1:8000/; diff --git a/web/script.js b/web/script.js index dd8431b..8a85814 100644 --- a/web/script.js +++ b/web/script.js @@ -49,7 +49,7 @@ function switchTab(tabName) { // 添加 API 配置 const API_CONFIG = { - BASE_URL: 'https://api.imwlw.com/v1', + BASE_URL: '/api/v1', ENDPOINTS: { SEARCH: '/avcode', COLLECTIONS: '/hacg',