8000 GitHub - geeknonerd/subserver: A simple config of clash server
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

geeknonerd/subserver

Repository files navigation

subserver

A simple config of clash server

Config

Exec cmd

cp config-example.yaml config.yaml

Change config.yaml file.

Run

Docker run

docker-compose -p subserver up -d

Stop & Delete

docker-compose stop
docker-compose rm -f

Vercel

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

Test

# 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

About

A simple config of clash server

Resources

4926

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0