1 Commits

Author SHA1 Message Date
Olia Lisa bad0bcc602 chore: 适配 sing-box v1.14 2026-06-10 14:40:01 +08:00
4 changed files with 16 additions and 3 deletions
+1 -1
View File
@@ -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(){
@@ -26,7 +26,8 @@
"enabled": true,
"server_name": "你的域名",
"alpn": ["h3"],
"acme": {
"certificate_provider": {
"type":"acme",
"domain": ["你的域名"],
"email": "你的邮箱",
"data_directory": "/etc/sing-box/tls/acme",
@@ -25,7 +25,8 @@
"enabled": true,
"server_name": "你的域名",
"alpn": ["h3"],
"acme": {
"certificate_provider": {
"type": "acme",
"domain": ["你的域名"],
"email": "你的邮箱",
"data_directory": "/etc/sing-box/tls/acme",
+11
View File
@@ -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