前端
This commit is contained in:
23
frontend/app/web-gold/nginx.conf
Normal file
23
frontend/app/web-gold/nginx.conf
Normal file
@@ -0,0 +1,23 @@
|
||||
server {
|
||||
listen 8088;
|
||||
server_name _;
|
||||
|
||||
root /usr/share/nginx/html;
|
||||
index index.html;
|
||||
|
||||
# Vite SPA:刷新/直达路由回退到 index.html
|
||||
location / {
|
||||
try_files $uri $uri/ /index.html;
|
||||
}
|
||||
|
||||
# 如需在生产环境继续代理后端,可在此追加;示例:
|
||||
# location /webApi/ {
|
||||
# proxy_set_header Host $host;
|
||||
# proxy_set_header X-Real-IP $remote_addr;
|
||||
# proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
# proxy_set_header X-Forwarded-Proto $scheme;
|
||||
# proxy_pass http://8.155.172.147:9900/;
|
||||
# }
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user