2023-09-21 17:50:19 +02:00
|
|
|
{
|
2024-02-16 16:18:14 +01:00
|
|
|
"settings": {
|
|
|
|
"http": {
|
|
|
|
"max_body_size": 22020096
|
|
|
|
}
|
|
|
|
},
|
2023-09-21 17:50:19 +02:00
|
|
|
"listeners": {
|
|
|
|
"*:8000": {
|
2024-03-20 21:48:55 +01:00
|
|
|
"pass": "applications/posthog"
|
2023-11-07 16:12:03 +01:00
|
|
|
},
|
|
|
|
"*:8001": {
|
|
|
|
"pass": "routes/metrics"
|
|
|
|
},
|
2023-11-27 11:06:22 +01:00
|
|
|
"*:8181": {
|
2023-11-07 16:12:03 +01:00
|
|
|
"pass": "routes/status"
|
2023-09-21 17:50:19 +02:00
|
|
|
}
|
|
|
|
},
|
2023-11-07 16:12:03 +01:00
|
|
|
"routes": {
|
|
|
|
"metrics": [
|
|
|
|
{
|
|
|
|
"match": {
|
2023-11-07 22:56:59 +01:00
|
|
|
"uri": ["/metrics"]
|
2023-11-07 16:12:03 +01:00
|
|
|
},
|
|
|
|
"action": {
|
|
|
|
"pass": "applications/metrics"
|
|
|
|
}
|
2023-11-07 22:56:59 +01:00
|
|
|
}
|
2023-11-07 16:12:03 +01:00
|
|
|
],
|
|
|
|
"status": [
|
|
|
|
{
|
|
|
|
"match": {
|
2023-11-07 22:56:59 +01:00
|
|
|
"uri": ["/status"]
|
2023-11-07 16:12:03 +01:00
|
|
|
},
|
|
|
|
"action": {
|
|
|
|
"proxy": "http://unix:/var/run/control.unit.sock"
|
|
|
|
}
|
2023-11-07 22:56:59 +01:00
|
|
|
}
|
|
|
|
]
|
2023-11-07 16:12:03 +01:00
|
|
|
},
|
2023-09-21 17:50:19 +02:00
|
|
|
"applications": {
|
|
|
|
"posthog": {
|
|
|
|
"type": "python 3.10",
|
2024-05-29 13:01:09 +02:00
|
|
|
"processes": $NGINX_UNIT_APP_PROCESSES,
|
2023-09-21 17:50:19 +02:00
|
|
|
"working_directory": "/code",
|
|
|
|
"path": ".",
|
2024-04-18 11:13:06 +02:00
|
|
|
"module": "posthog.$NGINX_UNIT_PYTHON_PROTOCOL",
|
|
|
|
"protocol": "$NGINX_UNIT_PYTHON_PROTOCOL",
|
2023-12-07 11:46:28 +01:00
|
|
|
"user": "nobody",
|
|
|
|
"limits": {
|
2024-04-18 15:50:41 +02:00
|
|
|
"requests": 7500
|
2023-12-07 11:46:28 +01:00
|
|
|
}
|
2023-11-07 16:12:03 +01:00
|
|
|
},
|
|
|
|
"metrics": {
|
|
|
|
"type": "python 3.10",
|
|
|
|
"processes": 1,
|
|
|
|
"working_directory": "/code/bin",
|
|
|
|
"path": ".",
|
|
|
|
"module": "unit_metrics",
|
|
|
|
"user": "nobody"
|
2023-11-07 22:56:59 +01:00
|
|
|
}
|
2023-09-21 17:50:19 +02:00
|
|
|
}
|
|
|
|
}
|