24 lines
528 B
Bash
24 lines
528 B
Bash
#!/bin/bash
|
|
|
|
# 使用自签名证书初始化
|
|
init() {
|
|
local script_dir=$(cd "$(dirname "$0")"; pwd)
|
|
|
|
cp "$script_dir/../config_template/self_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"
|
|
|
|
# 生成自签名证书和设置域名
|
|
bash "$script_dir/set_domain.sh" "bing.com"
|
|
|
|
echo "初始化设置完成"
|
|
}
|
|
|
|
init |