From 66e5a0d90031439124f2b3f3739a59975ba6f22a Mon Sep 17 00:00:00 2001 From: NekoRectifier Date: Tue, 12 Dec 2023 15:35:56 +0800 Subject: [PATCH] fix: can't start external controller --- .gitignore | 2 +- temp/templete_config.yaml | 28 ++++++++++++++++++++++++++++ 2 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 temp/templete_config.yaml diff --git a/.gitignore b/.gitignore index 6cb257b..6c26a61 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,2 @@ test.* -temp/** \ No newline at end of file +temp/clash_config.yaml \ No newline at end of file diff --git a/temp/templete_config.yaml b/temp/templete_config.yaml new file mode 100644 index 0000000..d63fbfa --- /dev/null +++ b/temp/templete_config.yaml @@ -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 +