mirror of
https://github.com/community-scripts/ProxmoxVED.git
synced 2026-02-25 05:57:26 +00:00
fix urls, simplify auth
This commit is contained in:
@@ -18,7 +18,7 @@ $STD apt update
|
||||
$STD apt install -y valkey openssl
|
||||
sed -i 's/^bind .*/bind 0.0.0.0/' /etc/valkey/valkey.conf
|
||||
PASS="$(openssl rand -base64 48 | tr -dc 'a-zA-Z0-9' | head -c32)"
|
||||
sed -ri "s|(# *)?requirepass .*|requirepass $PASS|" /etc/valkey/valkey.conf
|
||||
echo "requirepass $PASS" >> /etc/valkey/valkey.conf
|
||||
systemctl enable -q --now valkey-server
|
||||
systemctl restart valkey-server
|
||||
msg_ok "Installed Valkey"
|
||||
|
||||
Reference in New Issue
Block a user