From d73178c84d75816b696909ab5737afccd784594a Mon Sep 17 00:00:00 2001 From: Song367 <601337784@qq.com> Date: Thu, 19 Mar 2026 12:35:26 +0800 Subject: [PATCH] =?UTF-8?q?=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nginx.conf | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/nginx.conf b/nginx.conf index 48c5028..c0ca833 100644 --- a/nginx.conf +++ b/nginx.conf @@ -19,8 +19,8 @@ http { listen 80; server_name localhost; - location /video_translate/api/ { - proxy_pass http://127.0.0.1:3000/api/; + location /api/ { + proxy_pass http://127.0.0.1:3000/video_translate/api/; proxy_http_version 1.1; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; @@ -30,7 +30,7 @@ http { proxy_send_timeout 600s; } - location /video_translate/ { + location / { alias /app/dist/; index index.html; try_files $uri $uri/ /video_translate/index.html; @@ -38,6 +38,6 @@ http { location = /video_translate { return 301 /video_translate/; - } + } } }