mirror of
https://github.com/PostHog/posthog.git
synced 2024-12-01 12:21:02 +01:00
8daa09a20b
* Set nginx unit max body size to 21MiB We expect up to 20M for session replays. Our nginx setup has 20M as the limit and the default for nginx unit inadvertently dropped it to 8M * Fix unit config
62 lines
1.4 KiB
JSON
62 lines
1.4 KiB
JSON
{
|
|
"settings": {
|
|
"http": {
|
|
"max_body_size": 22020096
|
|
}
|
|
},
|
|
"listeners": {
|
|
"*:8000": {
|
|
"pass": "applications/posthog"
|
|
},
|
|
"*:8001": {
|
|
"pass": "routes/metrics"
|
|
},
|
|
"*:8181": {
|
|
"pass": "routes/status"
|
|
}
|
|
},
|
|
"routes": {
|
|
"metrics": [
|
|
{
|
|
"match": {
|
|
"uri": ["/metrics"]
|
|
},
|
|
"action": {
|
|
"pass": "applications/metrics"
|
|
}
|
|
}
|
|
],
|
|
"status": [
|
|
{
|
|
"match": {
|
|
"uri": ["/status"]
|
|
},
|
|
"action": {
|
|
"proxy": "http://unix:/var/run/control.unit.sock"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"applications": {
|
|
"posthog": {
|
|
"type": "python 3.10",
|
|
"processes": 4,
|
|
"working_directory": "/code",
|
|
"path": ".",
|
|
"module": "posthog.wsgi",
|
|
"user": "nobody",
|
|
"limits": {
|
|
"requests": 50000
|
|
}
|
|
},
|
|
"metrics": {
|
|
"type": "python 3.10",
|
|
"processes": 1,
|
|
"working_directory": "/code/bin",
|
|
"path": ".",
|
|
"module": "unit_metrics",
|
|
"user": "nobody"
|
|
}
|
|
}
|
|
}
|