Skip to content

Latest commit

 

History

History
73 lines (53 loc) · 1 KB

README.md

File metadata and controls

73 lines (53 loc) · 1 KB

BGmi Frontend

demo_img demo_img2

项目配置

安装

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/;
  }
}

欢迎 PR