Skip to content

YAML File

Jose Morales edited this page Jan 15, 2025 · 41 revisions

Configuration

In your computer's home directory: ${home}, create a directory called: .vetlog then inside create a file called application-development.yml with this content:

spring:
  datasource:
    url:  jdbc:mysql://localhost:3306/vetlog
    username:  username
    password:  password
    driverClassName: com.mysql.jdbc.Driver
    maxActive:  50
    maxIdle: 5
    minIdle: 25
    initialSize: 10
    validationQuery: SELECT 1
    testOnBorrow: true
    testOnReturn: false
    testWhileIdle: true
    timeBetweenEvictionRunsMillis: 5000
    minEvictableIdleTimeMillis: 60000
    maxWait: 10000
    template:
    cache: false
  jpa:
    hibernate:
      DdlAuto: validate
  profiles:
    include: development
  messages:
    basename: i18n/messages
  servlet:
    multipart:
      maxFileSize: 10MB
      maxRequestSize: 10MB
  cloud:
    gcp:
      projectId: vetlog-357216
      core:
        enabled: true
      credentials:
        location: classpath:vetlog.json
message: Hello Vetlog!
jmailer:
  url: https://jmailer.josdem.io/emailer/
  path: message
baseUrl: https://vetlog.org/
template:
  register:
    name: register.ftl
    path: recovery/activate/
  forgot:
    name: forgotPassword.ftl
    path: recovery/forgot/
  adoption:
    name: adoption.ftl
  welcome: welcome.ftl
breedsByTypeUrl: http://localhost:8080/breed/list
imageBucket: vetlog-bucket
prescriptionBucket: prescription-bucket
gcpUrl: https://storage.googleapis.com/
defaultImage: default-image.png
token: jmailer-user-token
countryCodes:
  - "+countryCodeOne"
management:
  endpoints:
    web:
      exposure:
        include: "health,info"
Clone this wiki locally