tools.horreum-backend.0.15.0.source-code.application.properties Maven / Gradle / Ivy
## Datasource managed by the app
# using my docker0 IP
# disable the default reactive datasource
quarkus.datasource.reactive=false
quarkus.datasource.migration.reactive=false
# disable the reactive JDBC datasource
quarkus.datasource.react.jdbc=false
quarkus.datasource.migration.react.jdbc=false
# disable elasticsearch healthcheck
quarkus.elasticsearch.health.enabled=false
## need to set following property in PROD env
##quarkus.datasource.jdbc.url=jdbc:postgresql://localhost:5432/horreum
quarkus.datasource.db-kind=postgresql
quarkus.datasource.username=appuser
quarkus.datasource.password=secret
quarkus.datasource.jdbc.min-size=3
quarkus.datasource.jdbc.max-size=25
quarkus.datasource.jdbc.initial-size=3
## see https://jdbc.postgresql.org/documentation/ssl/ to configure SSL on the driver and the server
%prod.quarkus.datasource.jdbc.additional-jdbc-properties.ssl=true
%prod.quarkus.datasource.jdbc.additional-jdbc-properties.sslmode=verify-full
##%prod.quarkus.datasource.jdbc.additional-jdbc-properties.sslrootcert=server.crt
# amqp
%prod.amqp-host=localhost
%prod.amqp-port=5672
%prod.amqp-username=horreum
%prod.amqp-password=secret
%prod.amqp-reconnect-attempts=100
%prod.amqp-reconnect-interval=1000
# dataset-event incoming
mp.messaging.incoming.dataset-event-in.connector=smallrye-amqp
mp.messaging.incoming.dataset-event-in.address=dataset-event
mp.messaging.incoming.dataset-event-in.durable=true
mp.messaging.incoming.dataset-event-in.container-id=horreum-broker
mp.messaging.incoming.dataset-event-in.link-name=dataset-event
# dataset-event outgoing
mp.messaging.outgoing.dataset-event-out.connector=smallrye-amqp
mp.messaging.outgoing.dataset-event-out.address=dataset-event
mp.messaging.outgoing.dataset-event-out.durable=true
mp.messaging.outgoing.dataset-event-out.container-id=horreum-broker
mp.messaging.outgoing.dataset-event-out.link-name=dataset-event
# re-calc incoming
mp.messaging.incoming.run-recalc-in.connector=smallrye-amqp
mp.messaging.incoming.run-recalc-in.address=run-recalc
mp.messaging.incoming.run-recalc-in.durable=true
mp.messaging.incoming.run-recalc-in.container-id=horreum-broker
mp.messaging.incoming.run-recalc-in.link-name=run-recalc
# re-calc outgoing
mp.messaging.outgoing.run-recalc-out.connector=smallrye-amqp
mp.messaging.outgoing.run-recalc-out.address=run-recalc
mp.messaging.outgoing.run-recalc-out.durable=true
mp.messaging.outgoing.run-recalc-out.container-id=horreum-broker
mp.messaging.outgoing.run-recalc-out.link-name=run-recalc
# schema-sync incoming
mp.messaging.incoming.schema-sync-in.connector=smallrye-amqp
mp.messaging.incoming.schema-sync-in.address=schema-sync
mp.messaging.incoming.schema-sync-in.durable=true
mp.messaging.incoming.schema-sync-in.container-id=horreum-broker
mp.messaging.incoming.schema-sync-in.link-name=schema-sync
# schema-sync outgoing
mp.messaging.outgoing.schema-sync-out.connector=smallrye-amqp
mp.messaging.outgoing.schema-sync-out.address=schema-sync
mp.messaging.outgoing.schema-sync-out.durable=true
mp.messaging.outgoing.schema-sync-out.container-id=horreum-broker
mp.messaging.outgoing.schema-sync-out.link-name=schema-sync
# run-upload incoming
mp.messaging.incoming.run-upload-in.connector=smallrye-amqp
mp.messaging.incoming.run-upload-in.address=run-upload
mp.messaging.incoming.run-upload-in.durable=true
mp.messaging.incoming.run-upload-in.container-id=horreum-broker
mp.messaging.incoming.run-upload-in.link-name=run-upload
# run-upload outgoing
mp.messaging.outgoing.run-upload-out.connector=smallrye-amqp
mp.messaging.outgoing.run-upload-out.address=run-upload
mp.messaging.outgoing.run-upload-out.durable=true
mp.messaging.outgoing.run-upload-out.container-id=horreum-broker
mp.messaging.outgoing.run-upload-out.link-name=run-upload
## Datasource updated by Liquibase - the same as app but always with superuser credentials
## need to set following property in PROD env
##quarkus.datasource.migration.jdbc.url=jdbc:postgresql://localhost:5432/horreum
quarkus.datasource.migration.db-kind=postgresql
quarkus.datasource.migration.username=dbadmin
quarkus.datasource.migration.password=secret
quarkus.liquibase.migration.migrate-at-start=true
# TODO validation query
# quarkus.datasource.validation-query-sql=SELECT current_setting('repo.userroles', true) = '';
quarkus.http.cors=true
# Do not use for PROD - this needs to be more restrictive in PROD env
quarkus.http.cors.origins=*
quarkus.hibernate-orm.dialect=org.hibernate.dialect.PostgreSQLDialect
# The database is initialized by Liquibase using db/changelog.xml - the application user
# does not have privileges to drop or alter the tables.
quarkus.hibernate-orm.database.generation=validate
horreum.test-mode=false
#quarkus.native.additional-build-args=
# thread pool sizes
smallrye.messaging.worker.horreum.dataset.pool.max-concurrency=7
smallrye.messaging.worker.horreum.run.pool.max-concurrency=7
smallrye.messaging.worker.horreum.schema.pool.max-concurrency=7
hibernate.jdbc.time_zone=UTC
# OIDC Configuration
## need to set following property in PROD env
##quarkus.oidc.auth-server-url=http://localhost:8180/realms/horreum
quarkus.oidc.client-id=horreum
## Do not un comment the line below, there appears to be a bug in Quarkus 3.4.1 where dev services do not overwrite the config property
quarkus.oidc.credentials.secret=overridden-in-file-dot-env
%dev.quarkus.oidc.credentials.secret=**********
# This option lets HorreumAuthorizationFilter transform app keys sent as tokens
quarkus.http.auth.proactive=false
# JPA authentication with a username and password
quarkus.http.auth.basic=true
# Keycloak-admin
quarkus.keycloak.admin-client.server-url=${horreum.keycloak.url}
quarkus.keycloak.admin-client.client-id=horreum
quarkus.keycloak.admin-client.client-secret=${quarkus.oidc.credentials.secret}
quarkus.keycloak.admin-client.realm=${horreum.keycloak.realm}
quarkus.keycloak.admin-client.grant-type=CLIENT_CREDENTIALS
# Secret used to sign database rows
horreum.db.secret=secret
## need to set following property in PROD env
## horreum.keycloak.url=http://localhost:8180
horreum.keycloak.realm=horreum
horreum.keycloak.clientId=horreum-ui
horreum.roles.provider=keycloak
# Address used in links to Horreum
horreum.url=http://localhost:3000
# Address used by internal services to access Horreum
horreum.internal.url=http://localhost:8080
horreum.alerting.missing.dataset.check=10m
horreum.alerting.expected.run.check=10m
# The period for deleting old transformation logs
horreum.transformationlog.check=6h
# The duration after which persistent log entries expire (are deleted)
# ISO-8601 duration stats with P (the format is PT