update
This commit is contained in:
parent
40b8135701
commit
5a6d943dd9
@ -1,13 +1,19 @@
|
||||
#!/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"
|
||||
|
||||
23
bin/init_with_tls_cert.sh
Normal file
23
bin/init_with_tls_cert.sh
Normal file
@ -0,0 +1,23 @@
|
||||
#!/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
|
||||
Loading…
Reference in New Issue
Block a user