From 72afdc65a5625d5f5e8d76189a528036948fe4c4 Mon Sep 17 00:00:00 2001 From: Jottyfan Date: Mon, 3 Oct 2022 17:45:03 +0200 Subject: [PATCH] externalize properties --- src/main/resources/application.properties | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index 74d7aa2..0938fb5 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -1,14 +1,9 @@ -# jooq -spring.datasource.driver-class-name=org.postgresql.Driver -spring.datasource.url=jdbc:postgresql://localhost:5432/camporganizer -spring.datasource.username=jooq -spring.datasource.password=jooq - # application -server.port = 8081 - server.servlet.context-path=/CampOrganizer2 +# database creddentials from defined config file +spring.config.import=/etc/CampOrganizer2/config.properties + # keycloak keycloak.auth-server-url = https://www.onkelwernerfreizeiten.de:8443/ keycloak.realm = ow @@ -17,3 +12,6 @@ keycloak.public-client = true keycloak.security-constraints[0].authRoles[0] = business keycloak.security-constraints[0].securityCollections[0].patterns[0] = /business/* keycloak.use-resource-role-mappings=true + +# for development only +server.port = 8081