pull/250/head
Muhammad Atif Ali 1 year ago
parent b308ea5423
commit 41ef969337

@ -17,7 +17,7 @@ variable "agent_id" {
variable "port" { variable "port" {
type = number type = number
description = "The port to run KasmVNC on." description = "The port to run KasmVNC on."
default = 8443 default = 6800
} }
variable "desktop_environment" { variable "desktop_environment" {

@ -24,15 +24,15 @@ fi
sudo addgroup $USER ssl-cert sudo addgroup $USER ssl-cert
# Coder port-forwarding from dashboard only supports HTTP # Coder port-forwarding from dashboard only supports HTTP
sudo bash -c 'cat > /etc/kasmvnc/kasmvnc.yaml <<EOF sudo bash -c "cat > /etc/kasmvnc/kasmvnc.yaml <<EOF
network: network:
protocol: http protocol: http
websocekt_port: ${PORT} websocket_port: ${PORT}
ssl: ssl:
require_ssl: false require_ssl: false
udp: udp:
public_ip: 127.0.0.1 public_ip: 127.0.0.1
EOF' EOF"
# This password is not used since we start the server without auth. # This password is not used since we start the server without auth.
# The server is protected via the Coder session token / tunnel # The server is protected via the Coder session token / tunnel
@ -40,4 +40,4 @@ EOF'
echo -e "password\npassword\n" | vncpasswd -wo -u $USER echo -e "password\npassword\n" | vncpasswd -wo -u $USER
# Start the server :) # Start the server :)
sudo su -u $USER bash -c 'vncserver -select-de "${DESKTOP_ENVIRONMENT}" -disableBasicAuth' sudo -u $USER bash -c 'vncserver -select-de "${DESKTOP_ENVIRONMENT}" -disableBasicAuth'

Loading…
Cancel
Save