summaryrefslogtreecommitdiff
path: root/microservices/03-resource-server/linux/deb/package/etc/ceit-fs-resource-server/application.yaml
blob: 5a1c9dfbcfc3496a31fcbf075507bf13797c917a (plain)
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
server:
  port: 8052
  address: 127.0.0.1
  servlet:
    context-path: /myservices

# logging:
#   level:
#     org.springframework.security: trace

spring:
  application:
    name: resource-server

  security:
    oauth2:
      resourceserver:
        jwt:
          issuer-uri: https://fs-auth-server.dev.ceit.pdn.ac.lk

  datasource:
    url: jdbc:h2:mem:testdb
    driver-class-name: org.h2.Driver
    username: sa
    password: password
  h2:
    console:
      enabled: false
      path: /h2-console # H2 Console: http://localhost:8052/myservices/h2-console
  jpa:
    # database-platform: org.hibernate.dialect.H2Dialect
    hibernate:
      ddl-auto: update
    show-sql: false
    defer-datasource-initialization: true # schema.sql and data.sql are executed after Hibernate/JPA auto-creates database tables.

  # Always execute initialization scripts (resources/schema.sql, resources/data.sql) on startup
  sql:
    init:
      mode: always