From bad0bcc602a00b25f533ae8596f32becc3849557 Mon Sep 17 00:00:00 2001 From: Olia Lisa Date: Fri, 29 May 2026 11:58:14 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E9=80=82=E9=85=8D=20sing-box=20v1.14?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/tls.sh | 2 +- .../template/hysteria/hysteria_acme_tls_config.json | 3 ++- config/template/tuic/tuic_acme_tls_config.json | 3 ++- docker-compose.yml.bak | 11 +++++++++++ 4 files changed, 16 insertions(+), 3 deletions(-) create mode 100644 docker-compose.yml.bak diff --git a/bin/tls.sh b/bin/tls.sh index fa9ac87..09e5ea6 100644 --- a/bin/tls.sh +++ b/bin/tls.sh @@ -76,7 +76,7 @@ update_acme_domain(){ echo "[Error] config_file配置文件路径 不能为空" return 1 fi - modify_json_file "$CONFIG_FILE" ".inbounds[0].tls.acme.domain[0]" "$DOMAIN" + modify_json_file "$CONFIG_FILE" ".inbounds[0].tls.certificate_provider.domain[0]" "$DOMAIN" } update_server_name(){ diff --git a/config/template/hysteria/hysteria_acme_tls_config.json b/config/template/hysteria/hysteria_acme_tls_config.json index 49d882c..e8fd02b 100644 --- a/config/template/hysteria/hysteria_acme_tls_config.json +++ b/config/template/hysteria/hysteria_acme_tls_config.json @@ -26,7 +26,8 @@ "enabled": true, "server_name": "你的域名", "alpn": ["h3"], - "acme": { + "certificate_provider": { + "type":"acme", "domain": ["你的域名"], "email": "你的邮箱", "data_directory": "/etc/sing-box/tls/acme", diff --git a/config/template/tuic/tuic_acme_tls_config.json b/config/template/tuic/tuic_acme_tls_config.json index 31e81a0..42bb8fd 100644 --- a/config/template/tuic/tuic_acme_tls_config.json +++ b/config/template/tuic/tuic_acme_tls_config.json @@ -25,7 +25,8 @@ "enabled": true, "server_name": "你的域名", "alpn": ["h3"], - "acme": { + "certificate_provider": { + "type": "acme", "domain": ["你的域名"], "email": "你的邮箱", "data_directory": "/etc/sing-box/tls/acme", diff --git a/docker-compose.yml.bak b/docker-compose.yml.bak new file mode 100644 index 0000000..c3b810d --- /dev/null +++ b/docker-compose.yml.bak @@ -0,0 +1,11 @@ +services: + sing-box: + image: ghcr.io/sagernet/sing-box:v1.14.0-alpha.26 + container_name: ${COMPOSE_PROJECT_NAME} + restart: unless-stopped + network_mode: host + volumes: + - ./config/config.json:/etc/sing-box/config.json + - ./tls:/etc/sing-box/tls + - ./logs:/var/log/sing-box + command: -C /etc/sing-box run \ No newline at end of file