Replace AmyTelecom default rules with clash-rules.
Both blacklist mode and whitelist mode are supported.
It also supports extra rules (e.g. blackmatrix7/ios_rule_script). Check clash-rules.yaml for details.
check python patch.py -h
example:
python patch.py --url "https://ghvpie.xyz/?<TOKEN>" --mode whitelist -o OUTPUT.yaml
- Zip scripts & dependencies
- Upload zip file to AWS Lambda Function
- Create a API Gateway Trigger
Your new subscription URL will be:
https://<ENDPOINT>.amazonaws.com/<API_URL>?token=<TOKEN>&mode=<MODE>
Subscription usage info is supported.