Skip to content

Commit e813827

Browse files
committed
docs: update container parameters section in readme
1 parent 24082fe commit e813827

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,20 @@ To start the microservice in production, use the command:
3030
docker run -d --restart always -p 3000:3000 mtsrus/botview
3131
```
3232

33+
## Container parameters
34+
35+
- `-e BOTVIEW_BASIC_AUTHS="https%3A%2F%2Ftb.mts.ru%2F"` - an array of endpoints with basic authorization parameters, default empty.
36+
Has format encodeURIComponent("url"):encodeURIComponent("login"):encodeURIComponent("password"). Use comma as separator.
37+
38+
- `-e BOTVIEW_NAV_TIMEOUT=30000` - [This setting will change the default maximum navigation time](https://pptr.dev/api/puppeteer.page.setdefaultnavigationtimeout),
39+
default 30000.
40+
41+
- `-e BOTVIEW_DEFAULT_TIMEOUT=15000` - [This setting will change the default timeout](https://pptr.dev/api/puppeteer.page.setdefaulttimeout),
42+
default 15000.
43+
44+
- `-e BOTVIEW_WAIT_UNTIL=networkidle0` - [When to consider waiting succeeds. Given an array of event strings, waiting is considered to be successful after all events have been fired](https://pptr.dev/api/puppeteer.waitforoptions),
45+
default networkidle0.
46+
3347
### Metrics Prometheus
3448
The microservice has built-in Prometheus monitoring and is located on the endpoint `/metrics`.
3549

0 commit comments

Comments
 (0)