fix: can't start external controller

This commit is contained in:
NekoRectifier 2023-12-12 15:35:56 +08:00
parent 5530eaf4e4
commit 66e5a0d900
2 changed files with 29 additions and 1 deletions

2
.gitignore vendored
View File

@ -1,2 +1,2 @@
test.*
temp/**
temp/clash_config.yaml

28
temp/templete_config.yaml Normal file
View File

@ -0,0 +1,28 @@
# HTTP 代理端口
port: 7890
# SOCKS5 代理端口
socks-port: 7891
# Linux 和 macOS 的 redir 代理端口
redir-port: 7892
# 允许局域网的连接
allow-lan: true
# 规则模式Rule规则 / Global全局代理/ Direct全局直连
mode: rule
# 设置日志输出级别 (默认级别silent即不输出任何内容以避免因日志内容过大而导致程序内存溢出
# 5 个级别silent / info / warning / error / debug。级别越高日志输出量越大越倾向于调试若需要请自行开启。
log-level: silent
# Clash 的 RESTful API
external-controller: '0.0.0.0:9090'
# RESTful API 的口令
secret: 'b&ZlKTte5OnEt2Sn'
# 您可以将静态网页资源(如 clash-dashboard放置在一个目录中clash 将会服务于 `RESTful API/ui`
# 参数应填写配置目录的相对路径或绝对路径。
# external-ui: /code/clash-dashboard