Skip to content

Commit

Permalink
fix sub config.js
Browse files Browse the repository at this point in the history
  • Loading branch information
stilleshan committed Mar 31, 2024
1 parent c8ebed0 commit a159a44
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 7 deletions.
4 changes: 2 additions & 2 deletions sub/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ Docker [stilleshan/sub](https://hub.docker.com/r/stilleshan/sub)
### docker
> 已更新支持短链接,如需要更换短链接或自己部署,请使用以下 docker compose 部署.
```shell
docker run -d --name subweb --restart always \
docker run -d --name sub --restart always \
-p 18080:80 \
-v /PATH/subweb/conf:/usr/share/nginx/html/conf \
-v /PATH/sub/conf:/usr/share/nginx/html/conf \
stilleshan/sub
```
修改挂载路径,根据需求自行修改`conf/config.js`中的相关配置.
Expand Down
20 changes: 15 additions & 5 deletions sub/conf/config.js
Original file line number Diff line number Diff line change
@@ -1,22 +1,32 @@
window.config = {
// 网站标题
siteName: 'Subconverter Web',
// API 地址
apiUrl: 'http://127.0.0.1:25500',
// 短域名服务地址
shortUrl: 'https://s.ops.ci',
// 首页菜单
menuItem: [
{
title: '首页',
link: '/',
target: '',
},
{
title: '短链接',
link: 'https://s.ops.ci',
target: '_blank',
},
{
title: 'GitHub',
link: 'https://github.com/stilleshan/subweb',
target: '_blank',
},
],
// 远程配置地址,可以自行按照格式添加。
remoteConfigOptions: [
{
value: 'https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/master/Clash/config/ACL4SSR_Online.ini',
text: 'ACL4SSR Online',
},
{
value: 'https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/master/Clash/config/ACL4SSR_Online_Full.ini',
text: 'ACL4SSR Online Full',
},
],
};

0 comments on commit a159a44

Please sign in to comment.