From cb5a025121f8ef1ec0e282452dba169b1a03ca14 Mon Sep 17 00:00:00 2001 From: Olia Lisa Date: Mon, 29 Dec 2025 22:27:12 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E9=85=8D=E7=BD=AE=E6=A8=A1?= =?UTF-8?q?=E6=9D=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/template/tls_cert_config.json | 31 +++++++++++----------------- 1 file changed, 12 insertions(+), 19 deletions(-) diff --git a/config/template/tls_cert_config.json b/config/template/tls_cert_config.json index c6b3f29..9f60248 100644 --- a/config/template/tls_cert_config.json +++ b/config/template/tls_cert_config.json @@ -3,23 +3,6 @@ "level": "info", "timestamp": true }, - - "certificate": { - "acme": { - "domains": [ - "你的域名" - ], - "email": "你的邮箱", - "provider": "cloudflare", - "dns": { - "api_token": "你的cloudflare_api_token" - }, - "disable_http_challenge": true, - "disable_tls_alpn_challenge": true, - "path": "/etc/sing-box/tls" - } - }, - "inbounds": [ { "type": "tuic", @@ -41,8 +24,18 @@ "enabled": true, "server_name": "你的域名", "alpn": ["h3"], - "key_path": "/etc/sing-box/tls/你的域名.key", - "certificate_path": "/etc/sing-box/tls/你的域名.crt" + "acme": { + "domain": [ + "你的域名" + ], + "email": "你的邮箱", + "provider": "cloudflare", + "dns": { + "cloudflare": { + "api_token": "你的Cloudflare_API_Token" + } + } + } } } ],