2022-07-01 14:32:25 +08:00
|
|
|
# subweb
|
|
|
|
## 简介
|
|
|
|
subweb 是基于 subconverter 订阅转换的前端项目,方便用户快速生成各平台的订阅链接.
|
|
|
|
|
2022-07-04 10:59:40 +08:00
|
|
|
> *subweb 是我个人入门 vuejs 学习时简单做的一个案例,使用还算方便,开源出来,欢迎各路大佬贡献维护.*
|
|
|
|
|
|
|
|
*GitHub [stilleshan/subweb](https://github.com/stilleshan/subweb)
|
|
|
|
Docker [stilleshan/subweb](https://hub.docker.com/r/stilleshan/subweb)*
|
|
|
|
|
2022-07-01 14:32:25 +08:00
|
|
|
## 示例
|
2022-07-04 10:59:40 +08:00
|
|
|
[https://sub.ops.ci](https://sub.ops.ci)
|
|
|
|
*`前后端示例,可以直接使用.`*
|
2022-07-01 14:32:25 +08:00
|
|
|
|
|
|
|
## 部署
|
2022-07-04 10:59:40 +08:00
|
|
|
### docker 本地版
|
2022-07-01 14:32:25 +08:00
|
|
|
*适用于本机部署使用*
|
|
|
|
```shell
|
|
|
|
docker run -d --name subweb --restart always -p 18080:80 stilleshan/subweb
|
|
|
|
```
|
|
|
|
|
|
|
|
访问 `http://127.0.0.1:18080`
|
|
|
|
|
2022-07-04 10:59:40 +08:00
|
|
|
### docker 在线版 (自定义后端 API)
|
|
|
|
*适用于服务器部署,配合域名反代使用*
|
2022-07-01 14:32:25 +08:00
|
|
|
|
2022-07-04 10:59:40 +08:00
|
|
|
**修改自定义 subconverter API 地址需要自行编译构建镜像. **
|
2022-07-01 14:32:25 +08:00
|
|
|
```shell
|
2022-07-04 10:59:40 +08:00
|
|
|
git clone https://github.com/stilleshan/subweb
|
|
|
|
cd subweb
|
|
|
|
# 修改 .env.productionn 中 VUE_APP_BASE_API_URL 为你 subconverter 后端 API 地址.
|
2022-07-01 14:32:25 +08:00
|
|
|
docker build -t subweb .
|
|
|
|
# 构建镜像
|
|
|
|
docker run -d --name subweb --restart always -p 18080:80 subweb
|
|
|
|
# 启动容器
|
|
|
|
```
|
2022-07-04 10:59:40 +08:00
|
|
|
|
|
|
|
## 链接
|
|
|
|
- [GitHub - stilleshan/subweb](https://github.com/stilleshan/subweb)
|
|
|
|
- [GitHub - stilleshan/subconverter](https://github.com/stilleshan/subconverter)
|