Giter Club home page Giter Club logo

bgmi-frontend's Introduction

bgmi-frontend

Project setup

npm install

已经设置好了proxyTable,当bgmi_http运行在默认端口的情况下,在npm run dev后不需要再手动设置后端api地址和解决跨域等问题.

Q&A:

我不想给bgmi分配一个域名,想把它放在我网站的一个子目录下怎么办?

nginx.conf

server {
  listen 80;
  server_name _;

  root /where/ever;
  autoindex on;
  charset utf-8;

  location /bgmi/bangumi {
    # ~/.bgmi/bangumi
    expires 30d;
    alias /home/ubuntu/.bgmi/bangumi;
  }

  location /bgmi/api {
    proxy_pass http://127.0.0.1:8888;
    # Requests to api/update may take more than 60s
    proxy_connect_timeout 500s;
    proxy_read_timeout 500s;
    proxy_send_timeout 500s;
  }

  location /bgmi/resource {
    proxy_pass http://127.0.0.1:8888;
  }

  location /bgmi/ {
    # ~/.bgmi/front_static/;
    expires 7d;
    alias /home/ubuntu/.bgmi/front_static/;
  }

  location /bgmi/jsonrpc {
    # aria2c rpc
    proxy_pass http://127.0.0.1:6800;
  }
}

thanks to @wengyusu

我想发一个PR 有什么需要注意的?

PR到BGmi/BGmi-frontend

其他的..暂时没有

已知的无法解决的问题

#23

bgmi-frontend's People

Contributors

dependabot[bot] avatar renovate-bot avatar renovate[bot] avatar sociosarbis avatar stonemoe avatar trim21 avatar wengyusu avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.