Skip to content

Commit 7d4e260

Browse files
author
Dennis Labordus
committed
Make BaseX properties configurable through environment variables.
Signed-off-by: Dennis Labordus <[email protected]>
1 parent bb1815c commit 7d4e260

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

app/src/main/resources/application.properties

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,14 @@ quarkus.log.level = INFO
1010
quarkus.log.category."org.lfenergy.compas.scl.data".level = INFO
1111

1212
# BaseX configuration
13-
basex.host = basex
14-
basex.port = 1984
15-
basex.username = admin
16-
basex.password = admin
13+
basex.host = ${BASEX_HOST:localhost}
14+
basex.port = ${BASEX_PORT:1984}
15+
basex.username = ${BASEX_USERNAME:admin}
16+
basex.password = ${BASEX_PASSWORD:admin}
1717

1818
# Dev Profile overrides.
1919
%dev.quarkus.http.port = 9090
2020
%dev.quarkus.http.cors = true
2121

22-
%dev.basex.host = localhost
23-
2422
%dev.quarkus.log.level = DEBUG
2523
%dev.quarkus.log.category."org.lfenergy.compas.scl.data".level = DEBUG

0 commit comments

Comments
 (0)