3D-Beacons / 3d-beacons-client

Implementation of the 3D-Beacons client (local 3D model server)
Apache License 2.0
3 stars 6 forks source link

Static files not served as expected #33

Closed sbliven closed 2 years ago

sbliven commented 2 years ago

I wasn't able to access the static files after following the README. I have ASSETS_URL=/static in my .env file and the summary endpoint reports model_url: "/static/cif/P38398.cif" as expected. However, http://localhost:8000/static/cif/P38398.cif gives a 404 error. The file is present locally at ./data/cif/P38398.cif. Should it be in some other location?

sillitoe commented 2 years ago

Thanks for creating this issue and sorry for the huge delay getting back to you.

This was basically an issue with documentation - the API is available on port 8000, but we should be getting people to access via the nginx frontend which is running on port 80 (this is also responsible for serving static files).

35 should address this

sbliven commented 2 years ago

Thanks @sillitoe. I figured it would be something easy like this. I can confirm it works on port 80.