Commit graph

112 commits

Author SHA1 Message Date
Eugene Burmakin
f4027551e6 Update StrongMigrations start_after 2025-01-22 15:06:35 +01:00
Eugene Burmakin
be779fe333 Merge remote-tracking branch 'origin/dev' into chore/database-user-constraints 2025-01-22 15:03:55 +01:00
Eugene Burmakin
b43810b1fb Import Google Records JSON in batches 2025-01-21 19:14:36 +01:00
Aleksei Besogonov
3fe48f6685 Add support for Nominatim
This adds support for Nominatim-based reverse geocoding, along with
Photon and Geofi. To use it, set the environment variables:

NOMINATIM_API_HOST - the host name of the OSM Nominatim server
NOMINATIM_API_USE_HTTPS - use the HTTPS to connect
NOMINATIM_API_KEY - the API key
2025-01-20 23:16:51 -08:00
Eugene Burmakin
11677b14ae Introduce self-hosted mode 2025-01-15 21:52:59 +01:00
Eugene Burmakin
974f45a4c9 Remove REVERSE_GEOCODING_ENABLED env var 2025-01-07 13:41:09 +01:00
Eugene Burmakin
ae6dc5ac8a Remove Photon API env vars and use DawarichSettings for reverse geocoding settings 2025-01-07 13:12:14 +01:00
Eugene Burmakin
10afb3fbc2 Fix Photon API for patreon supporters 2025-01-05 21:40:59 +01:00
Eugene Burmakin
cd31fb4cf0 Add database constraints for users table 2024-12-26 21:34:10 +01:00
Eugene Burmakin
d9bade8fe5 Fix specs for watcher and change z-index for markers and polylines 2024-12-25 13:05:42 +01:00
Eugene Burmakin
462df9e796 Make postgres config optional && add health check header && add photon api key 2024-12-24 16:51:26 +01:00
Eugene Burmakin
de09d9b9d7 Remove old framework defaults 2024-12-17 12:57:06 +01:00
Eugene Burmakin
5f93bf8522 Update to Rails 8.0.1 2024-12-17 12:56:21 +01:00
Eugene Burmakin
fc97a0bdf2 Update framework defaults to 7.2 2024-12-17 12:22:16 +01:00
Eugene Burmakin
03aadb9544 Update files to Rails 7.2 2024-12-17 12:15:02 +01:00
Eugene Burmakin
f095a7504c Merge remote-tracking branch 'origin/master' into feature/telemetry 2024-12-05 17:12:48 +01:00
Eugene Burmakin
f10f78999d Add basic telemetry 2024-12-05 17:12:35 +01:00
Eugene Burmakin
95706bc5b5 Update app version to 0.19.1 2024-12-05 11:10:00 +01:00
Eugene Burmakin
0236e81f74 Fix Prometheus exporter for Sidekiq 2024-12-04 15:00:28 +01:00
Alex Barcelo
e23d4ba382
avoid unnecessary initialization for certain scenarios 2024-12-02 11:35:08 +01:00
Eugene Burmakin
6093f4cb33 Return sidekiq_rate_limiting 2024-11-24 15:28:09 +01:00
Eugene Burmakin
2b2583e275 Remove sidekiq_rate_limiting 2024-11-24 15:25:00 +01:00
Eugene Burmakin
559dbbfefa Use sidekiq_rate_limiter for rate limiting requests to photon.komoot.io 2024-11-24 15:21:02 +01:00
Eugene Burmakin
79bf74add4 Move APP_VERSION to a constant 2024-11-24 14:56:20 +01:00
Eugene Burmakin
55e24f3adb Change default number of Puma workers to 2 2024-11-20 22:00:24 +01:00
Eugene Burmakin
6b4da57f3d Don't start Prometheus Exporter unless PROMETHEUS_EXPORTER_ENABLED is set to true 2024-11-20 21:07:43 +01:00
Eugene Burmakin
342f025bf2 Add port 9394 to docker-compose.yml for Prometheus exporter 2024-11-20 21:05:02 +01:00
Eugene Burmakin
55a575f87a Update sidekiq configuration to include Prometheus instrumentation 2024-11-20 20:50:21 +01:00
Eugene Burmakin
cf5b414ae4 Use single condition in the prometheus initializer file 2024-11-20 17:16:26 +01:00
Eugene Burmakin
055faac14f Add prometheus_exporter gem and instrumentation to the project 2024-11-20 12:02:31 +01:00
Eugene Burmakin
bc28babf15 Use local countries.geojson 2024-11-01 14:05:16 +01:00
Eugene Burmakin
d3f6d0da7b Rework the app version checking to be performed in the background and update docker compose file to use different directories for gems cache 2024-10-29 11:53:44 +01:00
Eugene Burmakin
60d2ee1cec Use fixed time for start_at and end_at in suggest_spec.rb 2024-10-19 23:03:35 +02:00
Evgenii Burmakin
5accd16deb
Merge pull request #280 from saschazepter/fix/use-openssl-urandom
Fix missing urandom by using OpenSSL's random_bytes
2024-10-19 22:57:28 +02:00
Eugene Burmakin
750bb4976c Add use_https option to geocoder initializer 2024-10-19 18:39:01 +02:00
Christen Lofland
3bf47ba18d Add use_https option to photon call to fix Issue #333 2024-10-17 17:32:16 -05:00
Eugene Burmakin
200bc980e5 Add cronjob to run Import::WatcherJob every 1 hour 2024-10-03 15:12:19 +02:00
Eugene Burmakin
df430851ce Add optional order query parameter to GET /api/v1/points 2024-10-02 21:29:56 +02:00
Eugene Burmakin
6aaab424fe Add monkey patch for Geocoder::Lookup::Photon to support http protocol 2024-10-01 22:05:35 +02:00
Sascha Zepter
5de7bd65a3
Fix missing urandom by using OpenSSL's random_bytes 2024-09-24 22:40:34 +02:00
Eugene Burmakin
5d14b406bd Add DISTANCE_UNIT environment variable 2024-08-28 23:54:00 +02:00
Eugene Burmakin
39bc6aa58a Implement support for custom Photon API host 2024-08-14 18:06:37 +02:00
Eugene Burmakin
f080b4c6ce Add tests for background jobs stuff 2024-07-12 21:59:03 +02:00
Eugene Burmakin
5b8ab3161b Remove MAP_CENTER env var 2024-06-30 13:16:19 +02:00
Eugene Burmakin
6ed9a27040 Update Records.json importing script 2024-06-10 22:48:05 +02:00
Eugene Burmakin
94ae8a3c9f Add favicon and allow setting concurrency via BACKGROUND_PROCESSING_CONCURRENCY 2024-06-07 19:22:39 +02:00
Eugene Burmakin
d25468207d Add a rake task to import large files from Google Takeout 2024-05-23 20:35:31 +02:00
Eugene Burmakin
e488dc9e4a Add swagger along with api/v1/points swagger doc 2024-05-18 13:35:48 +02:00
Eugene Burmakin
ce7b391316 Add a new release to the CHANGELOG.md file and rename env var 2024-05-05 12:03:25 +02:00
Eugene Burmakin
a333458756 Update docker-compose.yml to use latest docker image and add missing env var 2024-04-30 22:21:17 +02:00
Eugene Burmakin
ad78af59ac Rework calculation of cities visited 2024-04-26 18:59:58 +02:00
Eugene Burmakin
5544bcd5ff Move point creation to a background job, add months navigation to the sidebar 2024-04-02 17:37:38 +02:00
Eugene Burmakin
7292115a44 Move import processing to background job & allow to disable reverse geocoding 2024-03-24 18:05:39 +01:00
Eugene Burmakin
4af91748f0 Allow to set the default map center via an environment variable. 2024-03-21 23:54:19 +01:00
Eugene Burmakin
6f9d23017b Add indicies to points latitude longitude 2024-03-17 18:16:45 +01:00
Eugene Burmakin
1f3ee41bcb Implement calculation of cities and countries with the number of points and the last timestamp 2024-03-17 17:58:09 +01:00
Eugene Burmakin
ff57efab01 Add Dockerfile and update docker-compose.yml to use the new Dockerfile 2024-03-15 23:31:06 +01:00
Eugene Burmakin
a81b6ef723 Update devise to 4.9.3 and links to work with Turbo 2024-03-15 22:24:23 +01:00
Eugene Burmakin
682a388f0e Update to Rails 7.1.1 2023-10-21 12:43:31 +02:00
Eugene Burmakin
6f791401de Add strong_migrations gem 2023-02-03 15:42:56 +01:00
Eugene Burmakin
9bfc268109 Extract some useful code from January of 2023 app 2023-02-01 14:30:09 +01:00
Eugene Burmakin
0722e2d991 Initial Rails 7.0.2.3 template w/ rspec, tailwind, and devise user 2022-04-06 22:46:10 +04:00