将自签证书和acme证书统一迁移到tls文件夹

This commit is contained in:
Olia Lisa 2025-12-31 09:54:02 +08:00
parent 73a6dd2111
commit eb36486503
4 changed files with 4 additions and 5 deletions

View File

@ -4,7 +4,7 @@
gen_self_tls() { gen_self_tls() {
local domain="${1:-bing.com}" local domain="${1:-bing.com}"
local script_dir="$(dirname "$(realpath "$0")")" local script_dir="$(dirname "$(realpath "$0")")"
local key_dir="$script_dir/../tls" local key_dir="$script_dir/../tls/self-tls"
local config_file="$script_dir/../config/config.json" local config_file="$script_dir/../config/config.json"
# 导入utils文件夹中的jq_util.sh脚本 # 导入utils文件夹中的jq_util.sh脚本

View File

@ -24,8 +24,8 @@
"enabled": true, "enabled": true,
"server_name": "你的域名", "server_name": "你的域名",
"alpn": ["h3"], "alpn": ["h3"],
"key_path": "/etc/sing-box/tls/server.key", "key_path": "/etc/sing-box/tls/self-tls/server.key",
"certificate_path": "/etc/sing-box/tls/server.crt" "certificate_path": "/etc/sing-box/tls/self-tls/server.crt"
} }
} }
], ],

View File

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

View File

@ -7,5 +7,4 @@ 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