Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| bad0bcc602 |
+1
-1
@@ -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",
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user