Service that provides endpoints for a QX frontend / integrator.
You need Postgresql and Redis installed.
You can use all spring boot configuration properties. For additional configuration properties check out the see the application.properties file in the source code.
Set server port.
server.port=8081
Defaults point to localhost and the default redis port without authorization. You can change that with the following properties:
spring.data.redis.port=...
spring.data.redis.host=...
spring.data.redis.password=...
You need to configure the database connection. Make sure that user and schema are created before startup. The flyway migrations will update the database.
Example with user qx
and database qx
:
CREATE USER qx WITH PASSWORD '<enter-your-password-here>';
CREATE DATABASE qx OWNER qx;
# database (application)
spring.datasource.url=...
spring.datasource.username=...
spring.datasource.password=...
# flyway database migrations
spring.flyway.url=...
spring.flyway.user=...
spring.flyway.password=...
Schedulers can be configured with cron syntax or disabled with -
. Schedulers are disable by default.
scheduler.sync.cron=*/15 * * * * * # sync every 15 seconds
scheduler.migrate.cron=- # disabled
The migration scheduler is only necessary if you have old transactions without timestamp stored in your database. Leave it disabled for new installations.
If you want to access secured endpoints (like prometheus metrics) you need to authenticate and configure user information.
spring.security.user.name=...
spring.security.user.password=...
See OpenAPI descriptions.