From 8cb5c78497f5091e88ee1b9ac763b958cf176df6 Mon Sep 17 00:00:00 2001 From: Valentin CZERYBA Date: Wed, 12 Oct 2022 23:50:46 +0200 Subject: [PATCH] add variable environment --- src/main/resources/application.properties | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index 0b115d5..0ce8c45 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -7,9 +7,9 @@ mp.jwt.token.header=Cookie mp.jwt.token.cookie=jwt quarkus.datasource.db-kind = postgresql -quarkus.datasource.username = toto -quarkus.datasource.password = toto -quarkus.datasource.jdbc.url = jdbc:postgresql://db.valczeryba.ovh:54321/toto +quarkus.datasource.username = ${POSTGRES_USER:default} +quarkus.datasource.password = ${POSTGRES_PASSWORD:default} +quarkus.datasource.jdbc.url = jdbc:postgresql://${POSTGRES_URL:localhost}:${POSTGRES_PORT:5432}/${POSTGRES_DB:default} # drop and create the database at startup (use `update` to only update the schema) #quarkus.hibernate-orm.database.generation = drop-and-create quarkus.hibernate-orm.database.generation = update @@ -25,7 +25,7 @@ quarkus.mailer.password=aohrpmqvxldwyebs quarkus.mailer.mock=false -quarkus.redis.hosts=redis://redis.valczeryba.ovh:63791 +quarkus.redis.hosts=redis://${REDIS_URL:localhost}:${REDIS_PORT:6379} quarkus.http.cors=true quarkus.http.origins=http://localhost:8084