All Downloads are FREE. Search and download functionalities are using the official Maven repository.

e.4.1.0.source-code.application.yaml Maven / Gradle / Ivy

There is a newer version: 4.3.0
Show newest version
# custom config settings
# replace these in the config of your custom project or by overriding these variables
damap:
  env: DEV # override in your custom project with PROD for production deployment
  origins: http://localhost:8085 # https://your.frontend.com,https://*.yourdomain.com
  auth:
    backend:
      url: http://keycloak:8080/realms/damap # https://your.authentication.server
      client: 'damap-be' # your-backend-authentication-client-id
    frontend:
      url: http://localhost:8087/realms/damap # usually the same as the backend url
      client: 'damap' # your-frontend-authentication-client-id
    scope: 'openid profile email offline_access microprofile-jwt roles personID' # your-backend-authentication-scope, including your variable for your user IDs
    user: 'personID' # the variable name for your user IDs
  datasource:
    url: jdbc:postgresql://damap-db:5432/damap # jdbc:your-datasource-language:your-datasource.address
    username: damap # your-datasource-username
    password: pw4damap # your-datasource-password
    db-kind: postgresql # your database
  repositories:
    # Zenodo, Open Science Framework, DRYAD, Mendeley Data
    # can also be [] for no repositories recommendation
    recommendation: ['r3d100010468', 'r3d100011137', 'r3d100000044', 'r3d100011868'] # your-recommended-repositories
  projects-url: http://api-mock:80
  persons-url: http://api-mock:80
  fits-url: http://fits-service:8080/fits
  person-services:
    - display-text: 'University'
      query-value: 'UNIVERSITY'
      class-name: 'org.damap.base.rest.persons.MockUniversityPersonServiceImpl'
    - display-text: 'ORCID'
      query-value: 'ORCID'
      class-name: 'org.damap.base.rest.persons.orcid.ORCIDPersonServiceImpl'

# general config settings
quarkus:
  http:
    cors:
      ~: true
      origins: ${damap.origins}
      headers: origin,content-type,accept,authorization
      access-control-max-age: 1
    # needed for the fits service. Specify how large a single file for upload may be.
    limits:
      max-body-size: 10M

  oidc:
    auth-server-url: ${damap.auth.backend.url}
    client-id: ${damap.auth.backend.client}
    token:
      issuer: ${damap.auth.frontend.url}

  datasource:
    jdbc:
      url: ${damap.datasource.url}
    db-kind: ${damap.datasource.db-kind}
    username: ${damap.datasource.username}
    password: ${damap.datasource.password}

  hibernate-orm:
    database:
      generation: none
    sql-load-script: no-file

  cache:
    caffeine:
      "repositories":
        expire-after-write: P1D
      "repository":
        expire-after-write: P1D

  liquibase:
    migrate-at-start: true
    change-log: org/damap/base/db/changeLog-root.yaml

  smallrye-openapi:
    info-title: DAMAP API

  swagger-ui:
    always-include: true # set to false if swagger-ui should only be available in dev mode
    oauth-client-id: ${damap.auth.frontend.client}

rest:
  projects/mp-rest/url: ${damap.projects-url}
  persons/mp-rest/url: ${damap.persons-url}
  fits/mp-rest/url: ${damap.fits-url}
  r3data:
    repositories/mp-rest/url: https://www.re3data.org/api
    repositories/mp-rest/scope: jakarta.inject.Singleton
  openaire/mp-rest/url: http://api.openaire.eu/search/
  orcid:
    search/mp-rest/url: https://pub.orcid.org

"%dev":
  damap:
    origins: http://localhost:4200
    auth:
      backend:
        url: http://localhost:8087/realms/damap # https://your.authentication.server
    datasource:
      url: jdbc:postgresql://localhost:8088/damap
      username: damap
      password: pw4damap
    projects-url: http://localhost:8091
    persons-url: http://localhost:8091
    fits-url: http://localhost:8089/fits

"%oracle":
  quarkus:
    datasource:
      db-kind: oracle
    hibernate-orm:
      dialect: org.hibernate.dialect.OraclecDialect

"%postgres":
  quarkus:
    datasource:
      db-kind: postgresql
    hibernate-orm:
      dialect: org.hibernate.dialect.PostgreSQLDialect

"%test":
  damap:
    repositories:
      recommendation: ['r3d100010468'] # Re3Data id(s)
  quarkus:
    datasource:
      db-kind: h2
      jdbc:
        url: jdbc:h2:mem:test
    oidc:
      enabled: false




© 2015 - 2024 Weber Informatics LLC | Privacy Policy