opr-rest-api/src/main/resources/application.yml

38 lines
956 B
YAML

spring:
datasource:
url: jdbc:postgresql://${DB_HOST}:${DB_PORT:5432}/${DB_NAME:goi}
username: ${DB_USER}
password: ${DB_PASSWORD}
driver-class-name: org.postgresql.Driver
jpa:
hibernate:
ddl-auto: validate
show-sql: false
properties:
hibernate:
format_sql: true
database: postgresql
database-platform: org.hibernate.dialect.PostgreSQLDialect
autoconfigure:
exclude: org.springframework.boot.autoconfigure.security.servlet.UserDetailsServiceAutoConfiguration
application:
security:
jwt:
secret-key: ${SECRET_KEY}
expiration: 86400000 # a day
refresh-token:
expiration: 604800000 # 7 days
pagination:
default-page: 0
default-size: 20
max-size: 100
server:
port: 8083
servlet:
context-path: /opr-rest-api
# ================================
# ADD THIS
# ================================
hcm:
api:
base-url: http://localhost:8081/hcm-rest-api