archive.social/docs/const.md

93 wiersze
3.1 KiB
Markdown
Czysty Zwykły widok Historia

<a name="module_const"></a>
2022-11-21 17:30:34 +00:00
## const
2022-11-22 19:08:28 +00:00
thread-keeper
2022-11-21 17:30:34 +00:00
**Author**: The Harvard Library Innovation Lab
**License**: MIT
* [const](#module_const)
* [.CERTS_PATH](#module_const.CERTS_PATH)
* [.DATA_PATH](#module_const.DATA_PATH)
* [.TMP_PATH](#module_const.TMP_PATH)
* [.TEMPLATES_PATH](#module_const.TEMPLATES_PATH)
* [.EXECUTABLES_FOLDER](#module_const.EXECUTABLES_FOLDER)
* [.STATIC_PATH](#module_const.STATIC_PATH)
2022-11-29 20:39:08 +00:00
* [.REQUIRE_ACCESS_KEY](#module_const.REQUIRE_ACCESS_KEY)
* [.MAX_PARALLEL_CAPTURES_TOTAL](#module_const.MAX_PARALLEL_CAPTURES_TOTAL)
* [.MAX_PARALLEL_CAPTURES_PER_IP](#module_const.MAX_PARALLEL_CAPTURES_PER_IP)
2022-11-28 00:14:11 +00:00
* [.APP_VERSION](#module_const.APP_VERSION)
2022-11-21 17:30:34 +00:00
<a name="module_const.CERTS_PATH"></a>
2022-11-21 17:30:34 +00:00
### const.CERTS\_PATH
2022-11-21 17:30:34 +00:00
Path to the folder holding the certificates used for signing the PDFs.
2022-11-29 20:39:08 +00:00
Defaults to `./certs`
Can be replaced via the `CERTS_PATH` env variable.
2022-11-21 17:30:34 +00:00
**Kind**: static constant of [<code>const</code>](#module_const)
<a name="module_const.DATA_PATH"></a>
2022-11-21 17:30:34 +00:00
### const.DATA\_PATH
2022-11-21 17:30:34 +00:00
Path to the "data" folder.
2022-11-29 20:39:08 +00:00
Defaults to `./app/data`
Can be replaced via the `DATA_PATH` env variable.
2022-11-21 17:30:34 +00:00
**Kind**: static constant of [<code>const</code>](#module_const)
<a name="module_const.TMP_PATH"></a>
2022-11-21 17:30:34 +00:00
### const.TMP\_PATH
2022-11-21 17:30:34 +00:00
Path to the folder in which temporary files will be written by the app.
**Kind**: static constant of [<code>const</code>](#module_const)
<a name="module_const.TEMPLATES_PATH"></a>
2022-11-21 17:30:34 +00:00
### const.TEMPLATES\_PATH
2022-11-21 17:30:34 +00:00
Path to the "templates" folder.
**Kind**: static constant of [<code>const</code>](#module_const)
<a name="module_const.EXECUTABLES_FOLDER"></a>
2022-11-21 17:30:34 +00:00
### const.EXECUTABLES\_FOLDER
2022-11-21 17:30:34 +00:00
Path to the "executables" folder, for dependencies that are meant to be executed directly, such as `yt-dlp`.
**Kind**: static constant of [<code>const</code>](#module_const)
<a name="module_const.STATIC_PATH"></a>
2022-11-21 17:30:34 +00:00
### const.STATIC\_PATH
2022-11-21 17:30:34 +00:00
Path to the "static" folder.
2022-11-29 20:39:08 +00:00
**Kind**: static constant of [<code>const</code>](#module_const)
<a name="module_const.REQUIRE_ACCESS_KEY"></a>
### const.REQUIRE\_ACCESS\_KEY
If `true`, users will be required to provide an access key.
Defaults to `false`.
Can be replaced via the `REQUIRE_ACCESS_KEY` env variable, if set to "1".
**Kind**: static constant of [<code>const</code>](#module_const)
<a name="module_const.MAX_PARALLEL_CAPTURES_TOTAL"></a>
2022-11-21 17:30:34 +00:00
### const.MAX\_PARALLEL\_CAPTURES\_TOTAL
2022-11-21 17:30:34 +00:00
Maximum capture processes that can be run in parallel.
2022-11-29 20:39:08 +00:00
Defaults to 50.
Can be replaced via the `MAX_PARALLEL_CAPTURES_TOTAL` env variable.
2022-11-21 17:30:34 +00:00
**Kind**: static constant of [<code>const</code>](#module_const)
<a name="module_const.MAX_PARALLEL_CAPTURES_PER_IP"></a>
2022-11-21 17:30:34 +00:00
### const.MAX\_PARALLEL\_CAPTURES\_PER\_IP
2022-11-29 20:39:08 +00:00
Maximum capture processes that can be run in parallel for a given IP address.
Defaults to:
- 2 if REQUIRE_ACCESS_KEY is `false`
- 10 if REQUIRE_ACCESS_KEY is `true`
Can be replaced via the `MAX_PARALLEL_CAPTURES_PER_IP` env variable.
2022-11-21 17:30:34 +00:00
**Kind**: static constant of [<code>const</code>](#module_const)
2022-11-28 00:14:11 +00:00
<a name="module_const.APP_VERSION"></a>
### const.APP\_VERSION
APP version. Pulled from `package.json` by default.
**Kind**: static constant of [<code>const</code>](#module_const)