Configuration

All configuration options for the ConformaESG Integration Service.

Datasource

PropertyTypeDefaultDescription
quarkus.datasource.db-kindstringpostgresqlUse h2 for testing
quarkus.datasource.usernamestringPostgreSQL username
quarkus.datasource.passwordstringPostgreSQL password
quarkus.datasource.jdbc.urlstringJDBC connection URL

Hibernate ORM

PropertyTypeDefaultDescription
quarkus.hibernate-orm.database.generationstringvalidatenone, validate, update, drop-and-create
quarkus.hibernate-orm.log.sqlbooleanfalseLog SQL to console

Traceability Emission Factors

Configurable in the traceability module's application.properties:

PropertyDefaultDescription
traceability.emission.factor.truck96g CO₂ per tonne·km for truck
traceability.emission.factor.ship11g CO₂ per tonne·km for ship
traceability.emission.factor.train28g CO₂ per tonne·km for train
traceability.emission.factor.plane602g CO₂ per tonne·km for plane

Example app/src/main/resources/application.properties

Properties
%prod.quarkus.datasource.db-kind=postgresql
%prod.quarkus.datasource.username=${DB_USER}
%prod.quarkus.datasource.password=${DB_PASSWORD}
%prod.quarkus.datasource.jdbc.url=jdbc:postgresql://${DB_HOST:localhost}:5432/${DB_NAME:conformaesg}
%prod.quarkus.hibernate-orm.database.generation=validate
quarkus.datasource.devservices.image-name=postgres:16-alpine
%dev.quarkus.hibernate-orm.database.generation=update
quarkus.swagger-ui.always-include=true
quarkus.smallrye-openapi.info-title=ConformaESG Integration Service API
quarkus.smallrye-openapi.info-version=1.2.0

Build Profiles

ProfileDatabaseSchema GenerationUsage
devPostgreSQL (Dev Services / Docker)updateLocal development
testH2 in-memorydrop-and-createUnit/integration tests
prodPostgreSQL (external)validateProduction deployment
Warning

Always back up your database before deploying schema changes in production.