From a159a44ea9d28013e400f2121cc2afa248c9ade7 Mon Sep 17 00:00:00 2001 From: Stille Date: Sun, 31 Mar 2024 22:17:18 +0800 Subject: [PATCH] fix sub config.js --- sub/README.md | 4 ++-- sub/conf/config.js | 20 +++++++++++++++----- 2 files changed, 17 insertions(+), 7 deletions(-) diff --git a/sub/README.md b/sub/README.md index a664984..c6d3cea 100644 --- a/sub/README.md +++ b/sub/README.md @@ -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`中的相关配置. diff --git a/sub/conf/config.js b/sub/conf/config.js index ee1f128..fb2aae6 100644 --- a/sub/conf/config.js +++ b/sub/conf/config.js @@ -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', + }, + ], };