From 043f5a9f892a0a92b8c920a275b787896b350443 Mon Sep 17 00:00:00 2001 From: Alexey Murz Korepov Date: Wed, 24 Jul 2024 20:58:13 +0400 Subject: [PATCH] Make VNC connection without password by default (#50) --- README.md | 4 +++- docker-compose.selenium-chrome.yaml | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 2e845e0..1d4fbb3 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,9 @@ This service can be used with any project type. The examples below are Drupal-sp ### The easy way: Use noVNC (built-in) 1. Remove --headless from the MINK_DRIVER_ARGS_WEBDRIVER in your project's .ddev/config.selenium-standalone-chrome.yaml. Run `ddev restart`. -2. On your host, run `ddev launch :7900` or browse to https://[DDEV SITE URL]:7900 (password: `secret`) to watch tests run with noVNC (neat!). +2. On your host, run `ddev launch :7900` or browse to https://[DDEV SITE URL]:7900 to watch tests run with noVNC (neat!). + +By default noVNC connects without password, you can enable password by removing the "VNC_NO_PASSWORD=1" line in the file `docker-compose.selenium-chrome.yaml`, the default password will be `secret`, and you can set the custom one via `VNC_PASSWORD` environment variable. This enables you to quickly see what is going on with your tests. diff --git a/docker-compose.selenium-chrome.yaml b/docker-compose.selenium-chrome.yaml index 12ac31a..bf49112 100644 --- a/docker-compose.selenium-chrome.yaml +++ b/docker-compose.selenium-chrome.yaml @@ -16,6 +16,7 @@ services: - VIRTUAL_HOST=$DDEV_HOSTNAME - HTTPS_EXPOSE=7900:7900 - HTTP_EXPOSE=7910:7900 + - VNC_NO_PASSWORD=1 external_links: - ddev-router:${DDEV_SITENAME}.${DDEV_TLD} # To enable VNC access for traditional VNC clients like macOS "Screen Sharing",