mirror of
https://github.com/unraid/api.git
synced 2026-01-05 16:09:49 -06:00
now outputs logs to `/var/log/graphql-api.log` instead of `/var/log/unraid-api/unraid-api.log` --- <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Chores** - Updated the logging file destination to `/var/log/graphql-api.log`. - Streamlined configuration formatting for enhanced clarity. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: Eli Bosley <ekbosley@gmail.com>
20 lines
584 B
JSON
20 lines
584 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": 15000,
|
|
"max_restarts": 10,
|
|
"min_uptime": 10000,
|
|
"watch": false,
|
|
"ignore_watch": ["node_modules", "src", ".env.*", "myservers.cfg"],
|
|
"log_file": "/var/log/graphql-api.log",
|
|
"kill_timeout": 10000
|
|
}
|
|
]
|
|
}
|