增加acme目录持久化

This commit is contained in:
Olia Lisa 2025-12-30 19:08:56 +08:00
parent 267429b229
commit abab251aa1
2 changed files with 3 additions and 1 deletions

View File

@ -27,6 +27,7 @@
"acme": { "acme": {
"domain": ["你的域名"], "domain": ["你的域名"],
"email": "你的邮箱", "email": "你的邮箱",
"data_directory": "/etc/sing-box/acme",
"dns01_challenge": { "dns01_challenge": {
"provider": "cloudflare", "provider": "cloudflare",
"api_token": "你的Cloudflare_API_Token" "api_token": "你的Cloudflare_API_Token"

View File

@ -7,4 +7,5 @@ services:
volumes: volumes:
- ./config/config.json:/etc/sing-box/config.json - ./config/config.json:/etc/sing-box/config.json
- ./tls:/etc/sing-box/tls - ./tls:/etc/sing-box/tls
- ./acme:/etc/sing-box/acme
command: -C /etc/sing-box run command: -C /etc/sing-box run