Skip to content

Commit

Permalink
Serve staticfile direct from nginx unit
Browse files Browse the repository at this point in the history
We don't need to use django for staticfiles (even if there is a CDN
in front)
  • Loading branch information
frankh committed Mar 20, 2024
1 parent c55d501 commit b0ea76f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions unit.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,14 @@
"pass": "applications/posthog-health"
}
},
{
"match": {
"uri": ["/static/*"]
},
"action": {
"share": ["/code/staticfiles", "/code/frontend/dist", "/code/posthog/year_in_posthog/images"]
}
},
{
"action": {
"pass": "applications/posthog"
Expand Down

0 comments on commit b0ea76f

Please sign in to comment.