From e30216c9b86a1d057442641b71547cad35267041 Mon Sep 17 00:00:00 2001 From: Ralf Vogler Date: Thu, 7 Sep 2023 13:30:49 +0200 Subject: [PATCH] eg: default resolution 1280x1280 -> 1920x1080, #183 --- Dockerfile | 4 ++-- config.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index fd18159..f686c55 100644 --- a/Dockerfile +++ b/Dockerfile @@ -90,8 +90,8 @@ EXPOSE 5900 EXPOSE 6080 # Configure Xvfb via environment variables: -ENV WIDTH 1280 -ENV HEIGHT 1280 +ENV WIDTH 1920 +ENV HEIGHT 1080 ENV DEPTH 24 # Show browser instead of running headless diff --git a/config.js b/config.js index 2dd064d..e604d0f 100644 --- a/config.js +++ b/config.js @@ -12,8 +12,8 @@ export const cfg = { interactive: process.env.INTERACTIVE == '1', // confirm to claim, default skip show: process.env.SHOW == '1', // run non-headless get headless() { return !this.debug && !this.show }, - width: Number(process.env.WIDTH) || 1280, // width of the opened browser - height: Number(process.env.HEIGHT) || 1280, // height of the opened browser + width: Number(process.env.WIDTH) || 1920, // width of the opened browser + height: Number(process.env.HEIGHT) || 1080, // height of the opened browser timeout: (Number(process.env.TIMEOUT) || 60) * 1000, // default timeout for playwright is 30s login_timeout: (Number(process.env.LOGIN_TIMEOUT) || 180) * 1000, // higher timeout for login, will wait twice: prompt + wait for manual login novnc_port: process.env.NOVNC_PORT, // running in docker if set