2021-6-29: multiple domains can now serve a single delivery route
This update further improves the delivery-route feature released yesterday. A single route can now use multiple domains and servers simultaneously. For example, create a Default Route, mark it as the default and open it to everyone, including signed-in users and guests. If its workload exceeds one server's bandwidth, configure multiple domains corresponding to multiple servers serving that same route.
Domain setting: https://a.com|https://b.com|https://c.com
When users load the default route, its actual m3u8 contents may look like this:
#EXTM3U
#EXT-X-VERSION:3
#EXT-X-TARGETDURATION:18
#EXT-X-MEDIA-SEQUENCE:0
#EXTINF:17.400000,
https://a.com/index0.ts
#EXTINF:10.000000,
https://b.com/index1.ts
#EXTINF:5.480000,
https://b.com/index2.ts
#EXTINF:14.200000,
https://b.com/index3.ts
#EXTINF:4.800000,
https://c.com/index4.ts
#EXTINF:10.000000,
https://a.com/index5.ts
#EXTINF:17.720000,
https://c.com/index6.ts
#EXT-X-ENDLIST
The loaded M3U8 randomly assigns ts segments to your configured domains, balancing the route across multiple servers.
Screenshot:

Remote API calls
Get the route list
GET /api2/lines
#返回数据
[
{
"group": null,
"vipGroup": null,
"createAt": "2021-06-28T03:55:16.236Z",
"_id": "60da81313b870875ec5d9fa4",
"title": "组合线路",
"url": "https://cdn1.efvcms.com|https://cdn2.efvcms.com",
"open": "on",
"default": "on",
"notlogin": "on",
"__v": 0
},
{
"group": null,
"vipGroup": null,
"createAt": "2021-06-28T03:55:16.236Z",
"_id": "60da817b3b870875ec5da0b5",
"title": "cn2线路",
"url": "https://cdn3.efvcms.com",
"open": "on",
"default": null,
"notlogin": "on",
"__v": 0
}
]
Use a specified route for m3u8
https://域名/index.m3u8?line=线路id
m3u8 examples
#直接访问,则自动调用默认线路
/videos/60d88e0d66c8886d0a961818/720/index.m3u8
#使用上述线路列表示例的cn2线路
/videos/60d88e0d66c8886d0a961818/720/index.m3u8?line=60da817b3b870875ec5da0b5


