You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Made the temporary Puppeteer directory (`PUPPETEER_TEMP_DIR`) (till now, `'./tmp'`) configurable by the user [(#567)](https://github.com/highcharts/node-export-server/issues/567).
Copy file name to clipboardExpand all lines: README.md
+12-1Lines changed: 12 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -98,7 +98,8 @@ The format, along with its default values, is as follows (using the recommended
98
98
```
99
99
{
100
100
"puppeteer": {
101
-
"args": []
101
+
"args": [],
102
+
"tempDir": "./tmp/"
102
103
},
103
104
"highcharts": {
104
105
"version": "latest",
@@ -218,6 +219,8 @@ The format, along with its default values, is as follows (using the recommended
218
219
"proxy": {
219
220
"host": "",
220
221
"port": 8080,
222
+
"username": false,
223
+
"password": false,
221
224
"timeout": 5000
222
225
},
223
226
"rateLimiting": {
@@ -286,6 +289,10 @@ To load an additional JSON configuration file, use the `--loadConfig <filepath>`
286
289
287
290
These variables are set in your environment and take precedence over options from the `lib/schemas/config.js` file. They can be set in the `.env` file (refer to the `.env.sample` file). If you prefer setting these variables through the `package.json`, use `export` command on Linux/Mac OS X and `set` command on Windows.
288
291
292
+
### Puppeteer Config
293
+
294
+
-`PUPPETEER_TEMP_DIR`: The directory for Puppeteer to store temporary files (defaults to `./tmp/`).
295
+
289
296
### Highcharts Config
290
297
291
298
-`HIGHCHARTS_VERSION`: Highcharts version to use (defaults to `latest`).
@@ -323,6 +330,8 @@ These variables are set in your environment and take precedence over options fro
323
330
324
331
-`SERVER_PROXY_HOST`: The host of the proxy server to use, if it exists (defaults to ``).
325
332
-`SERVER_PROXY_PORT`: The port of the proxy server to use, if it exists (defaults to ``).
333
+
-`SERVER_PROXY_USERNAME`: If used proxy with authentication, need to pass username and password (defaults to ``).
334
+
-`SERVER_PROXY_PASSWORD`: If used proxy with authentication, need to pass username and password (defaults to ``).
326
335
-`SERVER_PROXY_TIMEOUT`: The timeout for the proxy server to use, if it exists (defaults to ``).
327
336
328
337
### Server Rate Limiting Config
@@ -419,6 +428,8 @@ _Available options:_
419
428
-`--serverBenchmarking`: Indicates whether to display the duration, in milliseconds, of specific actions that occur on the server while serving a request (defaults to `false`).
420
429
-`--proxyHost`: The host of the proxy server to use, if it exists (defaults to `false`).
421
430
-`--proxyPort`: The port of the proxy server to use, if it exists (defaults to `false`).
431
+
-`--proxyUsername`: If you want your proxy to be authenticated, pass the username with password (defaults to `false`).
432
+
-`--proxyPassword`: If you want your proxy to be authenticated, pass the username with password (defaults to `false`).
422
433
-`--proxyTimeout`: The timeout for the proxy server to use, if it exists (defaults to `5000`).
423
434
-`--enableRateLimiting`: Enables rate limiting for the server (defaults to `false`).
424
435
-`--maxRequests`: The maximum number of requests allowed in one minute (defaults to `10`).
0 commit comments