spring:
  # MySQL setting
  datasource:
    # ip, username, password will change
    driver-class-name: com.mysql.cj.jdbc.Driver
    url: jdbc:mysql://j9b307.p.ssafy.io:3306/vegetable?serverTimezone=UTC&useUniCode=yes&characterEncoding=UTF-8
    #url: jdbc:mysql://158.247.255.83:3306/vegetable?serverTimezone=UTC&useUniCode=yes&characterEncoding=UTF-8
    username: ssafy
    #password: ',b6H-Roq[.(SR{.%'
    password: '^9{6GuPoY^#hr&jQ]'

  jpa:
    show-sql: true
    hibernate:
      ddl-auto: none
    properties:
      hibernate:
        format_sql: true
      #        default_batch_fetch_size: 1000
      open-in-view: true
  jwt:
    prefix: 'Bearer'
    secret: E2940461030D23AD0D5B2B073EC996C2FF6DF9CE4F8598A12B936FE2B8237507
    token:
      access-expiration-time: 1800000
      refresh-expiration-time: 604800000
  data:
    redis:
      host: j9b307.p.ssafy.io
      port: 6379
      password: 17#01q7ck|C,2pFV8

  security:
    oauth2:
      client:
        registration:
          google:
            clientId: '1043837298523-221f13u6d7814lgvt1obrtnp7j9i0qsb.apps.googleusercontent.com'
            clientSecret: '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'
            scope:
              - email
              - profile
          naver:
            client-id: meuLPdnoGGQ2JHjxybq0
            client-secret: _pXqVrg6Zc
            client-authentication-method: client_secret_post
            authorization-grant-type: authorization_code
            redirect-uri: '{baseUrl}/{action}/oauth2/code/{registrationId}'
            client-name: Naver
            scope:
              - nickname
              - email
          kakao:
            client-id: 14052b98ed415ff7b124ee582a510ca4
            client-secret: AYotnv6R6LpDh9Cp67iMGmZ161KhvF9o
            redirect-uri: '{baseUrl}/{action}/oauth2/code/{registrationId}'
            authorization-grant-type: authorization_code
            client-authentication-method: client_secret_post
            client-name: Kakao
            scope:
              - profile_nickname
              - account_email
        provider:
          naver:
            authorizationUri: <https://nid.naver.com/oauth2.0/authorize>
            tokenUri: <https://nid.naver.com/oauth2.0/token>
            userInfoUri: <https://openapi.naver.com/v1/nid/me>
            userNameAttribute: response
          kakao:
            authorization-uri: <https://kauth.kakao.com/oauth/authorize>
            token-uri: <https://kauth.kakao.com/oauth/token>
            user-info-uri: <https://kapi.kakao.com/v2/user/me>
            user-name-attribute: id

server:
  port: 5000
  servlet:
    context-path: /api

logging:
  level:
    web: debug