ifgi / optimetaPortal

Geospatial discovery of research articles based on open metadata
https://projects.tib.eu/optimeta
GNU General Public License v3.0
1 stars 4 forks source link

Try out fly.io for hosting #42

Closed nuest closed 1 year ago

nuest commented 2 years ago

The free option now has 3 GB of free storage, e.g., for the Postgres database, see https://fly.io/blog/free-postgres/

The free CPU and RAM options should be enough to run the app: https://fly.io/blog/free-postgres/

We might be able to deploy with our existing Docker container: https://fly.io/docs/languages-and-frameworks/dockerfile/

Or just run the Django app (though that will be possibly difficult when we need GIS libs): https://fly.io/docs/django/getting-started/

More on PostGIS:

HTTPS:

nuest commented 1 year ago

With proxy, see https://fly.io/docs/app-guides/global-nginx-proxy/

Because of https://docs.gunicorn.org/en/latest/deploy.html

nuest commented 1 year ago

Deployment works, at least mostly.

image

There is no data, so the map does not show anything.

Missing still is a working configuration for CSFR, therefore logging in does not work:

image


CSRF

nuest commented 1 year ago

More on CSRF issues:

nuest commented 1 year ago

Login works now, currently deployed version will be merged with #83

Trick with CSRF was to properly configure trusted origins with a setting.