Update KasmVNC user group and config settings

- Use `usermod` to add user to ssl-cert group for compatibility.
- Simplify KasmVNC config with protocol and SSL parameters.
- Ensure UDP communication is confined to localhost for security.
atif/support-kasm-images
Muhammad Atif Ali 8 months ago
parent e4a57f4a6a
commit 92097e398d

@ -34,7 +34,7 @@ install_deb() {
download_file $url /tmp/kasmvncserver.deb
sudo apt-get update
DEBIAN_FRONTEND=noninteractive sudo apt-get install --yes -qq --no-install-recommends --no-install-suggests /tmp/kasmvncserver.deb
sudo addgroup $USER ssl-cert
sudo usermod -aG ssl-cert $USER
rm /tmp/kasmvncserver.deb
}
@ -176,7 +176,14 @@ EOF" || true
mkdir -p "$HOME/.vnc"
cat > "$HOME/.vnc/kasmvnc.yaml" <<EOF
network:
protocol: http
websocket_port: ${PORT}
ssl:
require_ssl: false
pem_certificate:
pem_key:
udp:
public_ip: 127.0.0.1
EOF
# This password is not used since we start the server without auth.

Loading…
Cancel
Save