nginx配置
http {
include mime.types;
default_type application/octet-stream;
server {
listen 8000;
server_name localhost;
client_max_body_size 15m;
location / {
root H:/BIKanban/frontend/html/;
index index.html;
}
location /app.html {
alias H:/BIKanban/mobile/app/;
try_files app.html =404;
}
location /de-app/ {
alias H:/BIKanban/mobile/app/;
}
# 静态资源路径映射包括仪表板与组件背景图片
location /static-resource/ {
root H:/BIKanban/resource/data;
}
location /de-api/ {
proxy_pass http://localhost:8081/de-api/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
}
location /link/ {
proxy_pass http://$host:8081;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
}
nginx资源文件