2025-06-09 14:59:40 +08:00
|
|
|
|
server {
|
2025-06-13 16:21:35 +08:00
|
|
|
|
listen 48103;
|
2025-06-09 14:59:40 +08:00
|
|
|
|
server_name localhost;
|
|
|
|
|
|
|
|
|
|
location / {
|
|
|
|
|
root /usr/share/nginx/html;
|
|
|
|
|
index index.html index.htm;
|
|
|
|
|
try_files $uri $uri/ /index.html;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
# 如果有API请求,可以配置代理
|
|
|
|
|
# location /api {
|
|
|
|
|
# proxy_pass http://backend-service:8080;
|
|
|
|
|
# proxy_set_header Host $host;
|
|
|
|
|
# proxy_set_header X-Real-IP $remote_addr;
|
|
|
|
|
# }
|
|
|
|
|
|
|
|
|
|
error_page 500 502 503 504 /50x.html;
|
|
|
|
|
location = /50x.html {
|
|
|
|
|
root /usr/share/nginx/html;
|
|
|
|
|
}
|
|
|
|
|
}
|