0.0.8 • Published 6 years ago
clash-config-regenerator v0.0.8
Clash Config Regenerator
Only generates proxies, proxy-groups and rules, other options should be defined in header.yml
Usage
git clone https://github.com/Biobots/clash-config-regenerator.gitModify global.yml, config_sample.yml and header_sample.yml. Copy your config file to ./config folder, rename it to your user name.
yarn install
yarn startor
npm install
npm startIf your config file under config/ is called a.yml and your server port is 1111, then http://localhost:1111/clash/a should return your config file.
Mutiple users are supported.
Use as a package
Add global.yml to ./ and use:
let ccr = require('clash-config-regenerator')
ccr.startServ() //start server
ccr.stopServ() //stop server