bgmi-frontend

2.0.7 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i bgmi-frontend

Weekly Downloads

537

Version

2.0.7

License

MIT

Unpacked Size

1.14 MB

Total Files

182

Last publish

Collaborators

  • trim21