fix sub config.js
This commit is contained in:
parent
c8ebed08f4
commit
a159a44ea9
|
@ -13,9 +13,9 @@ Docker [stilleshan/sub](https://hub.docker.com/r/stilleshan/sub)
|
||||||
### docker
|
### docker
|
||||||
> 已更新支持短链接,如需要更换短链接或自己部署,请使用以下 docker compose 部署.
|
> 已更新支持短链接,如需要更换短链接或自己部署,请使用以下 docker compose 部署.
|
||||||
```shell
|
```shell
|
||||||
docker run -d --name subweb --restart always \
|
docker run -d --name sub --restart always \
|
||||||
-p 18080:80 \
|
-p 18080:80 \
|
||||||
-v /PATH/subweb/conf:/usr/share/nginx/html/conf \
|
-v /PATH/sub/conf:/usr/share/nginx/html/conf \
|
||||||
stilleshan/sub
|
stilleshan/sub
|
||||||
```
|
```
|
||||||
修改挂载路径,根据需求自行修改`conf/config.js`中的相关配置.
|
修改挂载路径,根据需求自行修改`conf/config.js`中的相关配置.
|
||||||
|
|
|
@ -1,22 +1,32 @@
|
||||||
window.config = {
|
window.config = {
|
||||||
|
// 网站标题
|
||||||
siteName: 'Subconverter Web',
|
siteName: 'Subconverter Web',
|
||||||
|
// API 地址
|
||||||
apiUrl: 'http://127.0.0.1:25500',
|
apiUrl: 'http://127.0.0.1:25500',
|
||||||
|
// 短域名服务地址
|
||||||
shortUrl: 'https://s.ops.ci',
|
shortUrl: 'https://s.ops.ci',
|
||||||
|
// 首页菜单
|
||||||
menuItem: [
|
menuItem: [
|
||||||
{
|
{
|
||||||
title: '首页',
|
title: '首页',
|
||||||
link: '/',
|
link: '/',
|
||||||
target: '',
|
target: '',
|
||||||
},
|
},
|
||||||
{
|
|
||||||
title: '短链接',
|
|
||||||
link: 'https://s.ops.ci',
|
|
||||||
target: '_blank',
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
title: 'GitHub',
|
title: 'GitHub',
|
||||||
link: 'https://github.com/stilleshan/subweb',
|
link: 'https://github.com/stilleshan/subweb',
|
||||||
target: '_blank',
|
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',
|
||||||
|
},
|
||||||
|
],
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue