subweb/README.md

62 lines
2.1 KiB
Markdown
Raw Permalink Normal View History

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-04 12:02:37 +08:00
> *docker image support for X86 and ARM*
2022-07-04 10:59:40 +08:00
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-08-16 16:37:22 +08:00
[https://subweb-demo.vercel.app/](https://subweb-demo.vercel.app/)
2022-07-04 10:59:40 +08:00
*`前后端示例,可以直接使用.`*
2022-07-01 14:32:25 +08:00
## 部署
2022-07-04 10:59:40 +08:00
### docker 本地版
2022-07-11 16:17:01 +08:00
*适用于本机快速部署使用*
2022-07-01 14:32:25 +08:00
```shell
2022-07-10 20:33:00 +08:00
docker run -d --name subweb --restart always \
-p 18080:80 \
stilleshan/subweb
2022-07-01 14:32:25 +08:00
```
访问 `http://127.0.0.1:18080`
2022-08-05 13:51:40 +08:00
### docker 自定义版 + 短链接版
自定义版可以挂载配置文件来修改`API 地址`,`短链接地址`,`站点名称`,`导航链接`.
2022-07-11 16:17:01 +08:00
参考以下命令,修改本地挂载路径,启动容器后会生成`config.js`配置文件,更改后刷新生效.
```shell
docker run -d --name subweb --restart always \
-p 18080:80 \
2022-08-06 11:24:42 +08:00
-v /PATH/subweb/public/conf:/usr/share/nginx/html/conf \
2022-07-11 16:17:01 +08:00
stilleshan/subweb
```
2022-09-13 00:00:34 +08:00
同时也可以不挂载目录,直接通过`-e`环境变量来修改`API 地址`,`短链接地址`和`站点名称`,但是无法修改`导航链接`.
`注意:以下域名请严格填写 http 或 https 协议,结尾不要 / 斜杠符号.`
2022-07-01 14:32:25 +08:00
```shell
2022-07-10 20:33:00 +08:00
docker run -d --name subweb --restart always \
-p 18080:80 \
2022-07-11 16:17:01 +08:00
-e SITE_NAME=subweb \
2022-07-10 20:33:00 +08:00
-e API_URL=https://sub.ops.ci \
2022-08-05 13:51:40 +08:00
-e SHORT_URL=https://s.ops.ci \
2022-07-10 20:33:00 +08:00
stilleshan/subweb
2022-07-01 14:32:25 +08:00
```
2022-07-04 10:59:40 +08:00
2022-07-10 20:33:00 +08:00
访问 `http://127.0.0.1:18080`
> *推荐使用 nginx 反向代理部署*
2023-12-13 17:31:39 +08:00
### Vercel 部署
Vercel 部署请切换至 vercel 分支查看。
2022-08-16 16:37:22 +08:00
2022-08-05 13:51:40 +08:00
### subweb + subconverter + myurls 合并进阶版
2022-07-16 15:58:54 +08:00
详情查看 [stilleshan/sub](https://github.com/stilleshan/dockerfiles/tree/main/sub)
2022-07-10 20:33:00 +08:00
2022-07-04 10:59:40 +08:00
## 链接
2022-07-16 15:58:54 +08:00
- [stilleshan/sub](https://github.com/stilleshan/dockerfiles/tree/main/sub)
- [stilleshan/subweb](https://github.com/stilleshan/subweb)
- [stilleshan/subconverter](https://github.com/stilleshan/subconverter)