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