mirror of
https://github.com/asdlokj1qpi233/subconverter.git
synced 2025-10-25 18:32:22 +00:00
Add clash.external_controller option in config file (#772)
This commit is contained in:
@@ -5,7 +5,7 @@ socks-port: {{ default(global.clash.socks_port, "7891") }}
|
||||
allow-lan: {{ default(global.clash.allow_lan, "true") }}
|
||||
mode: Rule
|
||||
log-level: {{ default(global.clash.log_level, "info") }}
|
||||
external-controller: :9090
|
||||
external-controller: {{ default(global.clash.external_controller, "127.0.0.1:9090") }}
|
||||
{% if default(request.clash.dns, "") == "1" %}
|
||||
dns:
|
||||
enable: true
|
||||
@@ -384,7 +384,7 @@ enhanced-mode-by-rule = true
|
||||
"store_fakeip": true
|
||||
},
|
||||
"clash_api": {
|
||||
"external_controller": "127.0.0.1:9090",
|
||||
"external_controller": "{{ default(global.clash.external_controller, "127.0.0.1:9090") }}",
|
||||
"external_ui": "dashboard"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -233,6 +233,7 @@ clash.http_port=7890
|
||||
clash.socks_port=7891
|
||||
clash.allow_lan=true
|
||||
clash.log_level=info
|
||||
clash.external_controller=127.0.0.1:9090
|
||||
singbox.allow_lan=true
|
||||
singbox.mixed_port=2080
|
||||
|
||||
|
||||
@@ -244,6 +244,10 @@ value = "true"
|
||||
key = "clash.log_level"
|
||||
value = "info"
|
||||
|
||||
[[template.globals]]
|
||||
key = "clash.external_controller"
|
||||
value = "127.0.0.1:9090"
|
||||
|
||||
[[template.globals]]
|
||||
key = "singbox.allow_lan"
|
||||
value = "true"
|
||||
|
||||
@@ -109,9 +109,10 @@ template:
|
||||
- {key: clash.socks_port, value: 7891}
|
||||
- {key: clash.allow_lan, value: true}
|
||||
- {key: clash.log_level, value: info}
|
||||
- {key: clash.external_controller, value: '127.0.0.1:9090'}
|
||||
- {key: singbox.allow_lan, value: true}
|
||||
- {key: singbox.mixed_port, value: 2080}
|
||||
|
||||
|
||||
aliases:
|
||||
- {uri: /v, target: /version}
|
||||
- {uri: /clash, target: "/sub?target=clash"}
|
||||
|
||||
Reference in New Issue
Block a user