From a4ba95e9cdb10c67f9f9c8973a8e2da2f02328cc Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Tue, 28 Oct 2025 13:28:31 +0100 Subject: [PATCH] reitti json --- frontend/public/json/reitti.json | 40 ++++++++++++++++++++++++++++++++ install/reitti-install.sh | 12 ++++++---- 2 files changed, 48 insertions(+), 4 deletions(-) create mode 100644 frontend/public/json/reitti.json diff --git a/frontend/public/json/reitti.json b/frontend/public/json/reitti.json new file mode 100644 index 000000000..2921a5548 --- /dev/null +++ b/frontend/public/json/reitti.json @@ -0,0 +1,40 @@ +{ + "name": "Reitti", + "slug": "reitti", + "categories": [ + 21 + ], + "date_created": "2025-10-28", + "type": "ct", + "updateable": true, + "privileged": false, + "interface_port": 8080, + "documentation": "https://github.com/dedicatedcode/reitti", + "config_path": "/opt/reitti/application.properties", + "website": "https://www.dedicatedcode.com/projects/reitti/", + "logo": "https://cdn.jsdelivr.net/gh/selfhst/icons/webp/reitti.webp", + "description": "Reitti is a self-hosted location tracking and analysis platform that detects significant places, trip patterns, and integrates with OwnTracks, GPSLogger, and Immich. It uses PostgreSQL + PostGIS, RabbitMQ, Redis, and an optional Photon geocoder.", + "install_methods": [ + { + "type": "default", + "script": "ct/reitti.sh", + "resources": { + "cpu": 4, + "ram": 6144, + "hdd": 20, + "os": "Debian", + "version": "12" + } + } + ], + "default_credentials": { + "username": "admin", + "password": "admin" + }, + "notes": [ + { + "text": "Photon Geocoder must be running at http://127.0.0.1:2322. The installer sets this up automatically using the Germany OpenSearch dataset.", + "type": "info" + } + ] +} diff --git a/install/reitti-install.sh b/install/reitti-install.sh index f0762a0d2..cabcac1f6 100644 --- a/install/reitti-install.sh +++ b/install/reitti-install.sh @@ -61,7 +61,7 @@ msg_ok "Configured RabbitMQ" USE_ORIGINAL_FILENAME="true" fetch_and_deploy_gh_release "reitti" "dedicatedcode/reitti" "singlefile" "latest" "/opt/reitti" "reitti-app.jar" mv /opt/reitti/reitti-*.jar /opt/reitti/reitti.jar -USE_ORIGINAL_FILENAME="true" fetch_and_deploy_gh_release "photon" "komoot/photon" "singlefile" "latest" "/opt/photon" "photon*.jar" +USE_ORIGINAL_FILENAME="true" fetch_and_deploy_gh_release "photon" "komoot/photon" "singlefile" "latest" "/opt/photon" "photon-0*.jar" mv /opt/photon/photon-*.jar /opt/photon/photon.jar msg_info "Create Configuration" @@ -124,15 +124,19 @@ Restart=on-failure WantedBy=multi-user.target EOF -cat </etc/systemd/system/photon.service +cat <<'EOF' >/etc/systemd/system/photon.service [Unit] -Description=Photon Geocoding Service +Description=Photon Geocoding Service (Germany, OpenSearch) After=network.target [Service] Type=simple WorkingDirectory=/opt/photon -ExecStart=/usr/bin/java -Xmx2g -jar photon.jar +ExecStart=/usr/bin/java -Xmx4g -jar photon.jar \ + -data-dir /opt/photon \ + -listen-port 2322 \ + -listen-ip 0.0.0.0 \ + -cors-any Restart=on-failure TimeoutStopSec=20