diff --git a/README.md b/README.md index e002939..1388704 100644 --- a/README.md +++ b/README.md @@ -68,6 +68,7 @@ Available options/variables and their default values: | VNC_PASSWORD | | VNC password for Docker. No password used by default! | | NOTIFY | | Notification services to use (Pushover, Slack, Telegram...), see below. | | BROWSER_DIR | data/browser | Directory for browser profile, e.g. for multiple accounts. | +| TIMEOUT | 60 | Timeout for any page action. Should be fine even on slow machines. | | LOGIN_TIMEOUT | 180 | Timeout for login in seconds. Will wait twice (prompt + manual login). | | EMAIL | | Default email for any login. | | PASSWORD | | Default password for any login. | diff --git a/config.js b/config.js index bdb6bd9..d75ee98 100644 --- a/config.js +++ b/config.js @@ -11,7 +11,7 @@ export const cfg = { 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 - timeout: (Number(process.env.TIMEOUT) || 20) * 1000, // 20s, default 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 novnc_port: process.env.NOVNC_PORT, // running in docker if set notify: process.env.NOTIFY, // apprise notification services