mirror of
https://github.com/unraid/api.git
synced 2026-01-05 16:09:49 -06:00
Updated the total startup budget, bootstrap reserved time, and maximum operation timeout values to enhance API startup reliability. The total startup budget is now set to 30 seconds, with 20 seconds reserved for bootstrap and a maximum operation timeout of 5 seconds.
23 lines
720 B
JSON
23 lines
720 B
JSON
{
|
|
"$schema": "https://json.schemastore.org/pm2-ecosystem",
|
|
"apps": [
|
|
{
|
|
"name": "unraid-api",
|
|
"script": "./dist/main.js",
|
|
"cwd": "/usr/local/unraid-api",
|
|
"exec_mode": "fork",
|
|
"wait_ready": true,
|
|
"listen_timeout": 30000,
|
|
"max_restarts": 10,
|
|
"min_uptime": 10000,
|
|
"watch": false,
|
|
"interpreter": "/usr/local/bin/node",
|
|
"ignore_watch": ["node_modules", "src", ".env.*", "myservers.cfg"],
|
|
"out_file": "/var/log/graphql-api.log",
|
|
"error_file": "/var/log/graphql-api.log",
|
|
"merge_logs": true,
|
|
"kill_timeout": 10000
|
|
}
|
|
]
|
|
}
|