eg: default resolution 1280x1280 -> 1920x1080, #183
This commit is contained in:
parent
c79f4cc40f
commit
e30216c9b8
2 changed files with 4 additions and 4 deletions
|
|
@ -90,8 +90,8 @@ EXPOSE 5900
|
||||||
EXPOSE 6080
|
EXPOSE 6080
|
||||||
|
|
||||||
# Configure Xvfb via environment variables:
|
# Configure Xvfb via environment variables:
|
||||||
ENV WIDTH 1280
|
ENV WIDTH 1920
|
||||||
ENV HEIGHT 1280
|
ENV HEIGHT 1080
|
||||||
ENV DEPTH 24
|
ENV DEPTH 24
|
||||||
|
|
||||||
# Show browser instead of running headless
|
# Show browser instead of running headless
|
||||||
|
|
|
||||||
|
|
@ -12,8 +12,8 @@ export const cfg = {
|
||||||
interactive: process.env.INTERACTIVE == '1', // confirm to claim, default skip
|
interactive: process.env.INTERACTIVE == '1', // confirm to claim, default skip
|
||||||
show: process.env.SHOW == '1', // run non-headless
|
show: process.env.SHOW == '1', // run non-headless
|
||||||
get headless() { return !this.debug && !this.show },
|
get headless() { return !this.debug && !this.show },
|
||||||
width: Number(process.env.WIDTH) || 1280, // width of the opened browser
|
width: Number(process.env.WIDTH) || 1920, // width of the opened browser
|
||||||
height: Number(process.env.HEIGHT) || 1280, // height 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
|
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
|
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
|
novnc_port: process.env.NOVNC_PORT, // running in docker if set
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue