uniapp-miniprogram / nginx.conf
Trae Assistant
fix: change app_port to 7860 for huggingface
7897a78
raw
history blame contribute delete
405 Bytes
server {
listen 7860;
server_name localhost;
# 静态资源目录
location / {
root /usr/share/nginx/html;
index index.html index.htm;
# 支持单页应用路由
try_files $uri $uri/ /index.html;
}
# 错误页面处理
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
}