23 lines
521 B
Bash
23 lines
521 B
Bash
#!/bin/bash
|
|
|
|
|
|
# 使用域名证书初始化
|
|
init_with_tls_cert() {
|
|
local script_dir=$(cd "$(dirname "$0")"; pwd)
|
|
|
|
cp "$script_dir/../config_template/tls_cert_config.json" "$script_dir/../config.json"
|
|
|
|
# 设置端口
|
|
bash "$script_dir/update_port.sh"
|
|
|
|
# 设置密码
|
|
bash "$script_dir/update_password.sh"
|
|
|
|
# 设置混淆密码
|
|
bash "$script_dir/update_obfs_password.sh"
|
|
|
|
echo "[提示] 请自行设置域名和cloudflare_api_token"
|
|
echo "初始化设置完成"
|
|
}
|
|
|
|
init_with_tls_cert |