YAML File - josdem/vetlog-spring-boot GitHub Wiki

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!
gmailer:
  url: https://gmailer.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
  pullingUp: pullingUp.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
geoToken: userToken
veterinarians:
  - "vet-1"
  - "vet-2"
countryCodes:
  - "+countryCodeOne"
management:
  endpoints:
    web:
      exposure:
        include: "health,info"
google:
  url: "https://www.googleapis.com/geolocation/v1/"
  apiKey: ${GOOGLE_API_KEY}
geolocation:
  latitude: 19.376699
  longitude: -99.211900