Coder Social home page Coder Social logo

githubip2cos's Introduction

作用

定时获取GitHub520的 Hosts 文件与 GitHub IP 地址列表(通过 meta API 进行,见 关于 GitHub 的 IP 地址),并将二者转换为 Clash 的可订阅规则后,上传至腾讯 COS 存储桶。

原因:已经订阅了 Loyalsoldier 和 ACL4SSR 等大型规则,但 git 或其他需要使用 GitHub 资源时,IP 地址仍存在漏网之鱼的情况,所以自己动手丰衣足食。

食用方法

项目根目录下,创建 .env 文件

SecretId=''
SecretKey=''
Bucket=''
Region='ap-chengdu'

下载依赖

npm i

启动

pm2 start index.js --name gh2cos

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.