A simple config of clash server
Exec cmd
cp config-example.yaml config.yaml
Change config.yaml file.
Docker run
docker-compose -p subserver up -d
Stop & Delete
docker-compose stop
docker-compose rm -f
Env config
touch .env
TOKEN='xxx'
CLASH_SUB_FMT='http://localhost:25500/sub?target=clash&new_name=true&insert=false&config=https%3A%2F%2Fraw.githubusercontent.com%2FACL4SSR%2FACL4SSR%2Fmaster%2FClash%2Fconfig%2FACL4SSR_Online_Full_MultiMode.ini&append_type=true&emoji=true&list=false&tfo=false&scv=false&fdn=true&sort=false&udp=true'
CLASH_SUB_URLS='{"a":"https://abc.com/subscribe"}'
Install vercel
# nvm use v18.12.1
npm i -g vercel@latest
Develop
vercel dev
Deploy
vercel --prod
# subserver
curl http://localhost:8008/convert?token=<request-token>&sub_type=a
# subconverter
curl http://localhost:25500/sub?target=clash&new_name=true&insert=false&config=https%3A%2F%2Fraw.githubusercontent.com%2FACL4SSR%2FACL4SSR%2Fmaster%2FClash%2Fconfig%2FACL4SSR_Online_Full_MultiMode.ini&append_type=true&emoji=true&list=false&tfo=false&scv=false&fdn=true&sort=false&udp=true&filename=Clash_t.yaml&url=https%3A%2F%2Fxxx.a.com%2Fsub_url