Explorar o código

fix sub config.js

Stille hai 1 ano
pai
achega
a159a44ea9
Modificáronse 2 ficheiros con 17 adicións e 7 borrados
  1. 2 2
      sub/README.md
  2. 15 5
      sub/conf/config.js

+ 2 - 2
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`中的相关配置.

+ 15 - 5
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',
+    },
+  ],
 };