bgmi-frontend
v2.1.0
Published
web gui for bgmi
Downloads
539
Readme
项目配置
安装
git clone github.com/BGmi/BGmi-frontend.git
cd BGmi-frontend && pnpm install
部署
pnpm build && mv front_static ~/.bgmi
配置 NGINX
server {
listen 80;
autoindex on;
sendfile on;
charset utf-8;
# 动画片存放目录
location /bangumi {
# ~/.bgmi/bangumi/
alias /data/bangumi;
}
location / {
proxy_pass http://127.0.0.1:8888/;
}
}
如果你想使用网站的子路径, 按照如下配置
server {
listen 80;
autoindex on;
sendfile on;
charset utf-8;
location /bgmi/bangumi {
# ~/.bgmi/bangumi/
alias /data/bangumi;
}
location /bgmi/api/ {
proxy_pass http://127.0.0.1:8888/api/;
}
location /bgmi/resource/ {
proxy_pass http://127.0.0.1:8888/resource/;
}
location /bgmi {
alias /home/user/.bgmi/front_static/;
}
}