Adds django-rev-proxy to allow the Django app to proxy the Nextjs client.
In this approach, Django is still responsible for all requests - but if the url is configured to override, will request the Nextjs app. If this works in deployment, it enables us to skip looking at tokens, migrations, and using Azure gateway for routing.
The proxy is only activated when ENABLE_PROXY environment variable is true.
Relates #649
Checks
Important: please complete these before merging.
[x] Run migrations, if any.
[x] Update changelog.md, including migration instructions if any.
Changes
Adds
django-rev-proxy
to allow the Django app to proxy the Nextjs client.In this approach, Django is still responsible for all requests - but if the url is configured to override, will request the Nextjs app. If this works in deployment, it enables us to skip looking at tokens, migrations, and using Azure gateway for routing.
The proxy is only activated when
ENABLE_PROXY
environment variable is true.Relates #649
Checks
Important: please complete these before merging.
changelog.md
, including migration instructions if any.