java-endpoint / src /main /resources /application.yml
KevanSoon
Added Database connection
ec4d503
raw
history blame
848 Bytes
server:
port: 7860
spring:
datasource:
url: ${SPRING_DATASOURCE_URL}
username: ${SPRING_DATASOURCE_USERNAME}
password: ${SPRING_DATASOURCE_PASSWORD}
driver-class-name: org.postgresql.Driver
hikari:
maximum-pool-size: 10
connection-timeout: 30000
idle-timeout: 600000
jpa:
hibernate:
ddl-auto: update
open-in-view: false
properties:
hibernate:
dialect: org.hibernate.dialect.PostgreSQLDialect
# security:
# user:
# name: ${SPRING_SECURITY_USER_NAME}
# password: ${SPRING_SECURITY_USER_PASSWORD}
# Expose metrics for demo proof
management.endpoints.web.exposure.include: health,info,metrics,prometheus
# Externalised CV thresholds
recognition:
confidence: 0.6
cooldownMs: 10000
face-service:
url: http://localhost:5001 # backend face service url