Battery-Intelligence-Lab / galv

An open-source platform for automated storage of battery data with advanced metadata support
https://battery-intelligence-lab.github.io/galv/
Other
33 stars 8 forks source link

fix CORS issue in production deployment #69

Closed mjaquiery closed 1 year ago

mjaquiery commented 1 year ago

@martinjrobins This version should be better. Any chance you can test it on the Azure setup and verify it works? I can run it successfully without CORS issues in dev/prod mode quite happily, and even specify a port for it to run on. As is, it'll run on port 80 in both dev and prod modes.

As a side-effect, I've removed nginx's proxying of the django server and just allowed direct access because that container exposes its http interface over port 5000, so you've got http://localhost for the frontend and http://localhost:5000 for the backend.