fix: update url rule in nginx

This commit is contained in:
Wentao Lyu 2023-03-29 16:11:43 +08:00
parent e796a19136
commit 2c1871d5ba

View file

@ -2,14 +2,14 @@ server {
listen 80;
server_name localhost;
location / {
# Serve your React app
root /usr/share/nginx/html;
index index.html;
}
location /api {
# Proxy requests to the API service
proxy_pass http://api:3080/api;
}
location / {
# Serve your React app
root /usr/share/nginx/html;
try_files $uri $uri/ /index.html;
}
}