Account service

server:
  port: 0

spring:
  application:
    name: account-service
  datasource:
    driver-class-name: com.mysql.cj.jdbc.Driver

    url: jdbc:mysql://j9b108.p.ssafy.io:3308/kb_msa?useSSL=false&serverTimezone=Asia/Seoul&useUnicode=true&characterEncoding=utf8
    username: kb_admin
    password: b108kb

  jpa:
    open-in-view: true
    hibernate:
      ddl-auto: update
      naming:
        physical-strategy: org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl
      use-new-id-generator-mappings: false
    show-sql: false
    properties:
      dialect: org.hibernate.dialect.MySQL8InnoDBDialect

eureka:
  instance:
    instance-id: ${spring.application.name}:${spring.application.instance_id:${random.value}}
  client:
    register-with-eureka: true
    fetch-registry: true
    serviceUrl:
      defaultZone: <http://kb-discover-service:8764/eureka/>

  management:
    endpoints:
      web:
        exposure:
          include: "*"

web-client:
  user-service: <http://user-service/user>

discover service

server:
  port: 8764

spring:
  application:
    name: discovery-service

eureka:
  client:
    register-with-eureka: false
    fetch-registry: false
    serviceUrl:
      defaultZone: <http://kb-discover-service:8764/eureka/>
  server:
    renewalPercentThreshold: 0.7

gateway service

server:
  port: 9001

eureka:
  client:
    fetch-registry: true
    register-with-eureka: true
    service-url:
      defaultZone: <http://kb-discover-service:8764/eureka/>

spring:
  application:
    name: gateway-service
  cloud:
    gateway:
      discovery:
        locator:
          lower-case-service-id: true
          enabled: true
      routes:
        - id: user-service-auth
          uri: lb://USER-SERVICE
          predicates:
            - Path=/auth/**

        - id: user-service
          uri: lb://USER-SERVICE
          predicates:
            - Path=/user/**
              #          filters:
            #            - AuthorizationHeaderFilter

        - id: account-service
          uri: lb://ACCOUNT-SERVICE
          predicates:
            - Path=/account/**
              #          filters:
            #            - AuthorizationHeaderFilter

        - id: transfer-service
          uri: lb://TRANSFER-SERVICE
          predicates:
            - Path=/transfer/**
              #          filters:
            #            - AuthorizationHeaderFilter

jwt:
  #  secret key? 256?? ???? ???
  secret: beggVJDH3fB6MDstc1mPE3cRWuqdngkwjmHeSrjbJCe1Zbg4382HppmexqrXlqgG
  access-expired-seconds : 3600 # 60 * 60 : 1??
  refresh-expired-seconds : 86400 # 60 * 60 * 24 : ??

net amount servic

server:
  port: 0

spring:
  application:
    name: net-amount-service
  datasource:
    driver-class-name: com.mysql.cj.jdbc.Driver

    url: jdbc:mysql://j9b108.p.ssafy.io:3308/kb_msa?useSSL=false&serverTimezone=Asia/Seoul&useUnicode=true&characterEncoding=utf8
    username: kb_admin
    password: b108kb

  jpa:
    open-in-view: true
    hibernate:
      ddl-auto: update
      naming:
        physical-strategy: org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl
      use-new-id-generator-mappings: false
    show-sql: false
    properties:
      dialect: org.hibernate.dialect.MySQL8InnoDBDialect

eureka:
  client:
    register-with-eureka: true
    fetch-registry: true
    serviceUrl:
      defaultZone: <http://kb-discover-service:8764/eureka/>
  instance:
    instance-id: ${spring.application.name}:${spring.application.instance_id:${random.value}}

  management:
    endpoints:
      web:
        exposure:
          include: "*"

transfer service

server:
  port: 0

spring:
  application:
    name: transfer-service
  datasource:
    driver-class-name: com.mysql.cj.jdbc.Driver
    url: jdbc:mysql://j9b108.p.ssafy.io:3308/kb_msa?useSSL=false&serverTimezone=Asia/Seoul&useUnicode=true&characterEncoding=utf8
    username: kb_admin
    password: b108kb

  jpa:
    open-in-view: true
    hibernate:
      ddl-auto: update
      naming:
        physical-strategy: org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl
      use-new-id-generator-mappings: false
    show-sql: false
    properties:
      hibernate.format_sql: false
      dialect: org.hibernate.dialect.MySQL8InnoDBDialect

eureka:
  instance:
    instance-id: ${spring.application.name}:${spring.application.instance_id:${random.value}}
  client:
    register-with-eureka: true
    fetch-registry: true
    serviceUrl:
      defaultZone: <http://kb-discover-service:8764/eureka/>
  management:
    endpoints:
      web:
        exposure:
          include: "*"

web-client:
  account-service: <http://account-service/account>

user service

server:
  port: 0

spring:
  application:
    name: user-service
  datasource:
    driver-class-name: com.mysql.cj.jdbc.Driver
    url: jdbc:mysql://j9b108.p.ssafy.io:3308/kb_msa?useSSL=false&serverTimezone=Asia/Seoul&useUnicode=true&characterEncoding=utf8
    username: kb_admin
    password: b108kb

  jpa:
    open-in-view: true
    hibernate:
      ddl-auto: update
      naming:
        physical-strategy: org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl
      use-new-id-generator-mappings: false
    show-sql: false
    properties:
      dialect: org.hibernate.dialect.MySQL8InnoDBDialect

eureka:
  client:
    register-with-eureka: true
    fetch-registry: true
    serviceUrl:
      defaultZone: <http://kb-discover-service:8764/eureka/>
  instance:
    instance-id: ${spring.application.name}:${spring.application.instance_id:${random.value}}

  management:
    endpoints:
      web:
        exposure:
          include: "*"

jwt:
  #  secret key? 256?? ???? ???
  secret: beggVJDH3fB6MDstc1mPE3cRWuqdngkwjmHeSrjbJCe1Zbg4382HppmexqrXlqgG
  access-expired-seconds : 3600 # 60 * 60 : 1??
  refresh-expired-seconds : 86400 # 60 * 60 * 24 : ??

8fin:
  authentication :
    scope : 8fin