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.
Add global.yml to ./ and use:
let ccr = require('clash-config-regenerator')
ccr.startServ() //start server
ccr.stopServ() //stop server