Commit graph

555 commits

Author SHA1 Message Date
Paul Bienkowski cb837ef5f2 Build osm2pgsql with -j4 2022-03-14 19:05:55 +01:00
gluap e09c257995 first shot at proper login. 2022-03-10 20:59:16 +01:00
gluap 0c43e49bb4 do not convert "count" into km/h while converting speeds. 2022-03-08 22:21:37 +01:00
gluap 51f75fcf61 convert units to km/h in frontend
people struggle with SI units in that regard.
2022-03-08 21:15:04 +01:00
dependabot[bot] 49f7827b51 Update sqlalchemy[asyncio] requirement from ~=1.4.31 to ~=1.4.32 in /api
Updates the requirements on [sqlalchemy[asyncio]](https://github.com/sqlalchemy/sqlalchemy) to permit the latest version.
- [Release notes](https://github.com/sqlalchemy/sqlalchemy/releases)
- [Changelog](https://github.com/sqlalchemy/sqlalchemy/blob/main/CHANGES)
- [Commits](https://github.com/sqlalchemy/sqlalchemy/commits)

---
updated-dependencies:
- dependency-name: sqlalchemy[asyncio]
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-08 19:10:08 +01:00
Paul Bienkowski 8f2861a8c9 Add dynamic titles to all pages via react-helmet (related to #148) 2022-03-04 13:07:56 +01:00
Paul Bienkowski 40d23c537e Compile static title into index.html (fixes #148) 2022-03-04 13:07:34 +01:00
Paul Bienkowski a013dae3fe Remove map from home page, it was empty anyway (fixes #120) 2022-03-04 12:40:00 +01:00
Paul Bienkowski bc17c72fdb Fix logout (fixes #146) 2022-03-04 12:39:29 +01:00
Paul Bienkowski f5be2b20f8 Fix footer version link to github tag 2022-03-04 12:34:39 +01:00
lumbric 835aeeb483 Fix keycloak URI in example config
In the example login.example.com is used for the subdomain for the keycloak instance.
2022-03-03 15:39:28 +01:00
lumbric fd06baeeb5 Update example config.py
This commit syncs config.py with api/config.py.example. Some new
parameters were missing, causing AttributeErrors during deployment.
2022-03-03 15:38:34 +01:00
Paul Bienkowski 509e784521 Release: 0.4.2 2022-03-03 08:17:43 +01:00
Paul Bienkowski abb935694e Fix export route, it should be a child of /api/ 2022-03-03 08:16:59 +01:00
Paul Bienkowski 38e14c0084 Release: 0.4.1 2022-03-02 19:48:22 +01:00
Paul Bienkowski b72499b29e Update changelog for GPX export feature 2022-03-02 19:48:12 +01:00
Paul Bienkowski 2a9e3549b5 Fix track download dropdown appearing for non-authors, and update tooltip 2022-03-02 19:48:02 +01:00
Paul Bienkowski 741ff0d488 Upgrade guide for 0.4.1 2022-03-02 19:41:06 +01:00
Paul Bienkowski 21055e669a Document how to connect to postgresql 2022-03-02 19:40:14 +01:00
Paul Bienkowski 82f20e6354 Show proper error messages when track download fails 2022-03-02 19:25:40 +01:00
Paul Bienkowski af3e9574e4 Add better note on top of export page indicating experimental status 2022-03-02 19:15:35 +01:00
Paul Bienkowski 7e33fb6424 Prevent JS error on track page when bounding box is invalid 2022-03-02 19:06:40 +01:00
Paul Bienkowski 70fa1a41c4 Provide GPX download from track page 2022-02-25 11:53:28 +01:00
Paul Bienkowski a71dadfc7f Export GPX track while processing 2022-02-25 11:53:13 +01:00
Paul Bienkowski 600457fe19 Fix downloaded filename 2022-02-25 11:52:56 +01:00
Paul Bienkowski a884ac88d8 Add exports page 2022-02-22 17:52:13 +01:00
Paul Bienkowski 8135d4ed51 Release: 0.4.0 2022-02-22 15:56:27 +01:00
Paul Bienkowski ba887e2208 Write changelog for 0.4.0 2022-02-22 15:56:13 +01:00
Paul Bienkowski ec7a4506f9 Document lean mode 2022-02-19 09:27:08 +01:00
Paul Bienkowski 5a7900d269 Lean mode default should be off 2022-02-19 09:27:08 +01:00
Paul Bienkowski bdc68e950e Do not mount /tiles and /mapdetails routes in lean mode 2022-02-19 09:27:08 +01:00
Paul Bienkowski 3ef6dcf5d9 Add lean mode (overpass source and no map view in frontend) 2022-02-19 09:27:08 +01:00
Paul Bienkowski d10b91804c Update readme to mention config.overrides.py 2022-02-18 18:36:31 +01:00
Paul Bienkowski 01bde30d0c Add config.overrides.py for development config 2022-02-18 18:34:02 +01:00
Paul Bienkowski 71a04b1611 Fix track comment route 2022-02-18 18:24:28 +01:00
Paul Bienkowski 7fc9558e42 Use custom get_single arg everywhere, remove sanicargs (fixes #193) 2022-02-18 12:15:08 +01:00
Paul Bienkowski 8bb5d71186 Extract utility functions 2022-02-18 12:05:04 +01:00
Dennis Boldt 412349cf4f Improve the README 2022-02-18 11:46:00 +01:00
gluap 1735f44769 Port 3000 exposed for consistency
Noticed I can do this myself -- disregard my comment about this fact.
2022-02-18 11:46:00 +01:00
Dennis Boldt e82f2c9a0e Use environment variables to configure the portal
- Added an example .env file, where all variables start with `OBS_`
- `OBS_` variables are handled by the portal as configuration variables
- Uncomment some variables in the config.py, since the config.py overrides the env-vars
- Use env-vars and env-file in the docker-compose.yaml
- Add the worker to the docker-compose.yaml
- Add KeyCloak with its own postgres to the docker-compose.yaml
2022-02-18 11:46:00 +01:00
Dennis Boldt 0f816e1680 Fix env-var names in osm2pgsql.sh 2022-02-18 11:46:00 +01:00
Dennis Boldt e4e9f921b6 Fix isPath 2022-02-18 11:46:00 +01:00
Dennis Boldt 9df2914b86 Allow env-vars starting with OBS_ to configure the portal 2022-02-18 11:46:00 +01:00
Dennis Boldt af174bc930 osm2pgsql can use a connection string
See option -d at https://osm2pgsql.org/doc/man/latest.html
2022-02-18 11:46:00 +01:00
Dennis Boldt 12224db3b9 Use osm2pgsql.sh to import osm data into the database with the portal image
- Added POSTGRES env-vars to the portal (only handled by osm2pgsql.sh until now)
- Added ./data/pbf:/pbf as host volume mount to the portal
- Added osm2pgsql.sh, which ueses the env-vars and pbf-mount to import the osm data into the database
2022-02-18 11:46:00 +01:00
Dennis Boldt 85911a2c97 Add osm2pgsql to the portal container
- Build osm2pgsql in a separate woker
- Fix EXPOSE port to 3000
- Add postgres to the backend network
2022-02-18 11:46:00 +01:00
gluap b43f7a2ebb retry: should only modify client on success. 2022-02-18 11:21:04 +01:00
gluap 4505ddd0ee add retry to keycloak connection 2022-02-18 11:21:04 +01:00
gluap b8ab7da1a9 This allows us to recover from the condition with the broken connections. 2022-02-18 11:19:43 +01:00
gluap 5ac2900e63 make pool_size and overflow configurable for worker and portal 2022-02-18 11:19:43 +01:00