vvbbnn00 / WARP-Clash-API

该项目可以让你通过订阅的方式使用Cloudflare WARP+,自动获取流量。This project enables you to use Cloudflare WARP+ through subscription, automatically acquiring traffic.
GNU General Public License v3.0
8.45k stars 1.16k forks source link

feat: allow to custom surge managed url #31

Closed CorrectRoadH closed 7 months ago

CorrectRoadH commented 8 months ago

What does the PR do?

add a environment var to custom the surge managed url.

In general, the surge managed url is http://yourIP:21001/api/surge. But in some cases. We need add a reverse proxy in front of WARP clash API. the url may like https://sub.xxxx.xxx or https://sub.xxxx.xxx/surge.

So in the point view of product and user. I had to join the feature to WARP Clash API. Although it add some complexity.

vvbbnn00 commented 8 months ago

Understood your needs, however, we need to consider the issue of parameter passing, such as the passing of the 'best', 'randomName', and 'key' parameters.

CorrectRoadH commented 8 months ago

Understood your needs, however, we need to consider the issue of parameter passing, such as the passing of the 'best', 'randomName', and 'key' parameters.

Ok. I will try to resolve the problem of the consistency of managed url.