diff --git a/unit.json b/unit.json index 0b8de8774edf17..d17838fc906836 100644 --- a/unit.json +++ b/unit.json @@ -6,7 +6,7 @@ }, "listeners": { "*:8000": { - "pass": "applications/posthog" + "pass": "routes/app" }, "*:8001": { "pass": "routes/metrics" @@ -16,6 +16,21 @@ } }, "routes": { + "app": [ + { + "match": { + "uri": ["/static/*"] + }, + "action": { + "share": ["/code/staticfiles", "/code/frontend/dist", "/code/posthog/year_in_posthog/images"] + } + }, + { + "action": { + "pass": "applications/posthog" + } + } + ], "metrics": [ { "match": {