-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjd0-service-microservice.properties
57 lines (52 loc) · 2.56 KB
/
jd0-service-microservice.properties
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
server.servlet.context-path=/jd0-api
spring.application.name=jd0-service
server.port=8088
# Eureka server url
eureka.client.serviceUrl.defaultZone=http://localhost:8761/eureka/
eureka.client.register-with-eureka=true
eureka.client.fetch-registry=true
eureka.instance.preferIpAddress=true
eureka.instance.lease-expiration-duration-in-seconds=1
eureka.instance.lease-renewal-interval-in-seconds=2
# Keycloak config for a front-end use spring boot 3 that need to redirect to login
spring.security.oauth2.client.registration.keycloak.client-id=book0-service
spring.security.oauth2.client.registration.keycloak.client-secret=NFlmQqeJSPvc85kbALlip65TltiyNT48
spring.security.oauth2.client.registration.keycloak.authorization-grant-type=authorization_code
spring.security.oauth2.client.registration.keycloak.scope=openid
spring.security.oauth2.client.provider.keycloak.issuer-uri=http://www.tamky.xyz:8080/realms/mydev
spring.security.oauth2.client.provider.keycloak.user-name-attribute=preferred_username
# Keycloak config for a back-end use spring boot 3 like this book-service that works as a
# resource server to validate JWT tokens and to secure Rest APIs based extracted roles
spring.security.oauth2.resourceserver.jwt.issuer-uri=http://www.tamky.xyz:8080/realms/mydev
# REST
spring.data.rest.defaultMediaType=application/json
# DATASOURCE
spring.datasource.driverClassName=org.postgresql.Driver
spring.datasource.url=jdbc:postgresql://localhost:5432/base0?currentSchema=demo
spring.datasource.username=postgres
spring.datasource.password=postgres
spring.datasource.initialization-mode=always
spring.datasource.max-active=100
spring.datasource.max-idle=8
spring.datasource.min-idle=8
spring.datasource.initial-size=10
spring.datasource.validation-query=SELECT 1
spring.datasource.test-on-borrow=true
spring.datasource.test-on-return=false
spring.datasource.test-while-idle=true
spring.datasource.time-between-eviction-runs-millis=3600000
spring.datasource.min-evictable-idle-time-millis=10800000
spring.datasource.platform=postgres
spring.datasource.continue-on-error=true
spring.datasource.hikari.connectionTimeout=20000
spring.datasource.hikari.maximumPoolSize=5
# HIBERNATE
spring.jpa.database=POSTGRESQL
spring.jpa.show-sql=true
spring.jpa.generate-ddl=true
spring.jpa.hibernate.ddl-auto=none
spring.jpa.properties.hibernate.jdbc.batch_size=20
spring.jpa.properties.hibernate.cache.use_query_cache=false
spring.jpa.properties.hibernate.cache.use_structured_entries=false
spring.jpa.properties.hibernate.cache.use_second_level_cache=false
spring.jpa.properties.hibernate.jdbc.lob.non_contextual_creation=true