Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions docker/nginx/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ server {
location /3/ {
proxy_pass http://django-api;
}
location /1/ {
proxy_pass http://django-api;
}
location /admin/ {
proxy_pass http://django-api;
}
Expand Down
9 changes: 9 additions & 0 deletions docs/features/catalog-stats.md
Original file line number Diff line number Diff line change
Expand Up @@ -447,3 +447,12 @@ columns with no `card` in the predicate, which the model's pre-existing
`(card, anonymous_id)` index cannot serve (leading-column mismatch). See
migration `0096`'s own docstring for the full reasoning, including why
`anonymous_id` leads the composite index.

## Deployment: nginx must route /1/ to django (PR #668)

`docker/nginx/nginx.conf` must include a `location /1/` proxy block
forwarding to `http://django-api`, without which every /1/ request
returns a 404 at nginx. The stats page (`GET 1/catalogStats/`) renders
"The stats cache hasn't been computed yet" and the homepage participation
graph (`GET 1/funnelCounts/`) shows an error. The block was added in
PR #668; see [[../infrastructure.md]] for the full nginx setup.
Loading