Update reitti-install.sh

This commit is contained in:
CanbiZ 2025-10-29 11:07:48 +01:00
parent 3e9d3b38de
commit 25c1b34826

View File

@ -65,44 +65,44 @@ USE_ORIGINAL_FILENAME="true" fetch_and_deploy_gh_release "photon" "komoot/photon
mv /opt/photon/photon-*.jar /opt/photon/photon.jar mv /opt/photon/photon-*.jar /opt/photon/photon.jar
msg_info "Creating Reitti Configuration-File" msg_info "Creating Reitti Configuration-File"
cat <<'EOF' >/opt/reitti/application.properties cat <<EOF >/opt/reitti/application.properties
# ─── Database (PostgreSQL/PostGIS) ────────────────────────────────── # PostgreSQL Database Connection
spring.datasource.url=jdbc:postgresql://${POSTGIS_HOST}:${POSTGIS_PORT}/${POSTGIS_DB} spring.datasource.url=jdbc:postgresql://127.0.0.1:5432/$DB_NAME
spring.datasource.username=${POSTGIS_USER} spring.datasource.username=$DB_USER
spring.datasource.password=${POSTGIS_PASSWORD} spring.datasource.password=$DB_PASS
spring.datasource.driver-class-name=org.postgresql.Driver spring.datasource.driver-class-name=org.postgresql.Driver
# ─── Flyway Migration ─────────────────────────────────────────────── # Flyway Database Migrations
spring.flyway.enabled=true spring.flyway.enabled=true
spring.flyway.locations=classpath:db/migration spring.flyway.locations=classpath:db/migration
spring.flyway.baseline-on-migrate=true spring.flyway.baseline-on-migrate=true
# ─── RabbitMQ ─────────────────────────────────────────────────────── # RabbitMQ (Message Queue)
spring.rabbitmq.host=${RABBITMQ_HOST} spring.rabbitmq.host=127.0.0.1
spring.rabbitmq.port=${RABBITMQ_PORT} spring.rabbitmq.port=5672
spring.rabbitmq.username=${RABBITMQ_USER} spring.rabbitmq.username=$RABBIT_USER
spring.rabbitmq.password=${RABBITMQ_PASSWORD} spring.rabbitmq.password=$RABBIT_PASS
spring.rabbitmq.virtual-host=${RABBITMQ_VHOST}
# ─── Redis ───────────────────────────────────────────────────────── # Redis (Cache)
spring.redis.host=${REDIS_HOST} spring.data.redis.host=127.0.0.1
spring.redis.port=${REDIS_PORT} spring.data.redis.port=6379
# spring.redis.username=${REDIS_USERNAME}
# spring.redis.password=${REDIS_PASSWORD}
# ─── Photon / Processing ──────────────────────────────────────────── # Server Port
reitti.photon.base-url=${PHOTON_BASE_URL} server.port=8080
reitti.processing.wait-time=${PROCESSING_WAIT_TIME}
reitti.processing.batch-size=${PROCESSING_BATCH_SIZE}
reitti.processing.workers-per-queue=${PROCESSING_WORKERS_PER_QUEUE}
# ─── Application Server / Logging ─────────────────────────────────── # Optional: Logging & Performance
server.port=${SERVER_PORT} logging.level.root=INFO
logging.level.root=${LOGGING_LEVEL}
# ─── Misc / Safety ─────────────────────────────────────────────────
reitti.dangerous-life=${DANGEROUS_LIFE}
spring.jpa.hibernate.ddl-auto=none spring.jpa.hibernate.ddl-auto=none
spring.datasource.hikari.maximum-pool-size=10
# Photon (Geocoding)
PHOTON_BASE_URL=http://127.0.0.1:2322
PROCESSING_WAIT_TIME=15
PROCESSING_BATCH_SIZE=1000
PROCESSING_WORKERS_PER_QUEUE=4-16
# Disable potentially dangerous features unless needed
DANGEROUS_LIFE=false
EOF EOF
msg_ok "Created Configuration-File for Reitti" msg_ok "Created Configuration-File for Reitti"