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/; - } + } } }