Health-Informatics-UoN / Carrot-Mapper

Carrot: Convenient And Reusable Rapid Omop Transformer.
https://carrot4omop.ac.uk
MIT License
12 stars 3 forks source link

Add Django proxy for Nextjs #667

Closed AndyRae closed 2 months ago

AndyRae commented 2 months ago

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.

github-actions[bot] commented 2 months ago
Tests Skipped Failures Errors Time
25 1 :zzz: 0 :x: 0 :fire: 1.385s :stopwatch: