云存储各大厂商都没有提供endpoint的列表API,所以我们通过开源社区的方式维护一份。
利用它,可以在配置云存储时快速选择需要的endpoint。
curl https://raw.githubusercontent.com/eplist/eplist/main/oss.yml
import axios from "axios";
import yamlLoader from "js-yaml";
axios.get(`https://raw.githubusercontent.com/eplist/eplist/main/oss.yml`).then((data) => {
let eplist = yamlLoader.load(data);
console.log(eplist.endpoints);
})
This repo is under the MIT license. See the LICENSE file for details.