mirror of
https://github.com/cmz0228/hysteria-dev.git
synced 2025-06-18 10:19:55 +00:00
chore: rand pass for config in install_server.sh
This commit is contained in:
parent
3eeab8a349
commit
bd2d4c9b8e
@ -161,6 +161,10 @@ has_prefix() {
|
|||||||
[[ "x$_s" != "x${_s#"$_prefix"}" ]]
|
[[ "x$_s" != "x${_s#"$_prefix"}" ]]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
generate_random_password() {
|
||||||
|
dd if=/dev/random bs=18 count=1 status=none | base64
|
||||||
|
}
|
||||||
|
|
||||||
systemctl() {
|
systemctl() {
|
||||||
if [[ "x$FORCE_NO_SYSTEMD" == "x2" ]] || ! has_command systemctl; then
|
if [[ "x$FORCE_NO_SYSTEMD" == "x2" ]] || ! has_command systemctl; then
|
||||||
warning "Ignored systemd command: systemctl $@"
|
warning "Ignored systemd command: systemctl $@"
|
||||||
@ -681,7 +685,7 @@ acme:
|
|||||||
|
|
||||||
auth:
|
auth:
|
||||||
type: password
|
type: password
|
||||||
password: Se7RAuFZ8Lzg
|
password: $(generate_random_password)
|
||||||
|
|
||||||
masquerade:
|
masquerade:
|
||||||
type: proxy
|
type: proxy
|
||||||
|
Loading…
x
Reference in New Issue
Block a user