eg: default resolution 1280x1280 -> 1920x1080, #183

This commit is contained in:
Ralf Vogler 2023-09-07 13:30:49 +02:00
parent c79f4cc40f
commit e30216c9b8
2 changed files with 4 additions and 4 deletions

View file

@ -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

View file

@ -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