自用,免得再搜配置复制粘贴
Nginx 配置文件参考
location / {
try_files $uri $uri/ /index.html;
}
location /api {
proxy_pass http://localhost:3000/api;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Real-IP $remote_addr;
}
自用,免得再搜配置复制粘贴
location / {
try_files $uri $uri/ /index.html;
}
location /api {
proxy_pass http://localhost:3000/api;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Real-IP $remote_addr;
}