This commit is contained in:
parent
844ee38215
commit
d73178c84d
@ -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/;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user