This is the codeAbility Sharing Platform! Learn more about the codeAbility Sharing Platform.

Skip to content
Snippets Groups Projects
application.yml 6.6 KiB
Newer Older
Lukas Kaltenbrunner's avatar
Lukas Kaltenbrunner committed
# ===================================================================
# Spring Boot configuration.
#
# This configuration will be overridden by the Spring profile you use,
# for example application-dev.yml if you use the "dev" profile.
#
# More information on profiles: https://www.jhipster.tech/profiles/
# More information on configuration properties: https://www.jhipster.tech/common-application-properties/
# ===================================================================

# ===================================================================
# Standard Spring Boot properties.
# Full reference is available at:
# http://docs.spring.io/spring-boot/docs/current/reference/html/common-application-properties.html
# ===================================================================

Michael Breu's avatar
Michael Breu committed
---
# Conditionally disable springdoc on missing api-docs profile
spring:
  config:
    activate:
      on-profile: '!api-docs'
springdoc:
  api-docs:
    enabled: false
---
Lukas Kaltenbrunner's avatar
Lukas Kaltenbrunner committed
management:
  endpoints:
    web:
      base-path: /management
      exposure:
Michael Breu's avatar
Michael Breu committed
        include:
          [
            'configprops',
            'env',
            'health',
            'info',
            'jhimetrics',
            'jhiopenapigroups',
            'logfile',
            'loggers',
            'prometheus',
            'threaddump',
            'caches',
            'liquibase',
          ]
Lukas Kaltenbrunner's avatar
Lukas Kaltenbrunner committed
  endpoint:
    health:
Michael Breu's avatar
Michael Breu committed
      show-details: WHEN_AUTHORIZED
Lukas Kaltenbrunner's avatar
Lukas Kaltenbrunner committed
      roles: 'ROLE_ADMIN'
Michael Breu's avatar
Michael Breu committed
      probes:
        enabled: true
      group:
        liveness:
          include: livenessState
        readiness:
          include: readinessState,db
Lukas Kaltenbrunner's avatar
Lukas Kaltenbrunner committed
    jhimetrics:
      enabled: true
  info:
    git:
      mode: full
  health:
    mail:
      enabled: false # When using the MailService, configure an SMTP server and set this to true
  metrics:
    export:
      # Prometheus is the default metrics backend
      prometheus:
        enabled: true
        step: 60
    enable:
      http: true
      jvm: true
      logback: true
      process: true
      system: true
    distribution:
      percentiles-histogram:
        all: true
      percentiles:
        all: 0, 0.5, 0.75, 0.95, 0.99, 1.0
    tags:
      application: ${spring.application.name}
    web:
      server:
        request:
          autotime:
            enabled: true

spring:
  application:
    name: gitsearch
  profiles:
    # The commented value for `active` can be replaced with valid Spring profiles to load.
    # Otherwise, it will be filled in by maven when building the JAR file
    # Either way, it can be overridden by `--spring.profiles.active` value passed in the commandline or `-Dspring.profiles.active` set in `JAVA_OPTS`
    active: #spring.profiles.active#
Michael Breu's avatar
Michael Breu committed
    group:
      dev:
        - dev
        - api-docs
        # Uncomment to activate TLS for the dev profile
        #- tls
      staging:
        - staging
        - api-docs
Lukas Kaltenbrunner's avatar
Lukas Kaltenbrunner committed
  jmx:
    enabled: false
  data:
    jpa:
      repositories:
        bootstrap-mode: deferred
  jpa:
    open-in-view: false
    properties:
      hibernate.jdbc.time_zone: UTC
      hibernate.id.new_generator_mappings: true
      hibernate.connection.provider_disables_autocommit: true
      hibernate.cache.use_second_level_cache: true
      hibernate.cache.use_query_cache: false
      hibernate.generate_statistics: false
      # modify batch size as necessary
      hibernate.jdbc.batch_size: 25
      hibernate.order_inserts: true
      hibernate.order_updates: true
      hibernate.query.fail_on_pagination_over_collection_fetch: true
      hibernate.query.in_clause_parameter_padding: true
    hibernate:
      ddl-auto: none
      naming:
        physical-strategy: org.springframework.boot.orm.jpa.hibernate.SpringPhysicalNamingStrategy
        implicit-strategy: org.springframework.boot.orm.jpa.hibernate.SpringImplicitNamingStrategy
  messages:
    basename: i18n/messages
  main:
    allow-bean-definition-overriding: true
Michael Breu's avatar
Michael Breu committed
    allow-circular-references: true
  mvc:
    pathmatch:
      matching-strategy: ANT_PATH_MATCHER
Lukas Kaltenbrunner's avatar
Lukas Kaltenbrunner committed
  task:
    execution:
      thread-name-prefix: gitsearch-task-
      pool:
        core-size: 2
        max-size: 50
        queue-capacity: 10000
    scheduling:
      thread-name-prefix: gitsearch-scheduling-
      pool:
        size: 2
  thymeleaf:
    mode: HTML
  output:
    ansi:
      console-available: true

server:
  servlet:
    session:
      cookie:
        http-only: true

Michael Breu's avatar
Michael Breu committed
springdoc:
  show-actuator: true

Lukas Kaltenbrunner's avatar
Lukas Kaltenbrunner committed
# Properties to be exposed on the /info management endpoint
info:
  # Comma separated list of profiles that will trigger the ribbon to show
  display-ribbon-on-profiles: 'dev'

# ===================================================================
# JHipster specific properties
#
# Full reference is available at: https://www.jhipster.tech/common-application-properties/
# ===================================================================

jhipster:
  clientApp:
Michael Breu's avatar
Michael Breu committed
    name: 'gitsearchApp'
Lukas Kaltenbrunner's avatar
Lukas Kaltenbrunner committed
  # By default CORS is disabled. Uncomment to enable.
  # cors:
Michael Breu's avatar
Michael Breu committed
  #   allowed-origins: "http://localhost:8100,http://localhost:9000"
  #   allowed-methods: "*"
  #   allowed-headers: "*"
  #   exposed-headers: "Authorization,Link,X-Total-Count,X-${jhipster.clientApp.name}-alert,X-${jhipster.clientApp.name}-error,X-${jhipster.clientApp.name}-params"
  #   allow-credentials: true
  #   max-age: 1800
Lukas Kaltenbrunner's avatar
Lukas Kaltenbrunner committed
  mail:
    from: gitsearch@localhost
Michael Breu's avatar
Michael Breu committed
  api-docs:
    default-include-pattern: ${server.servlet.context-path:}/api/**
    management-include-pattern: ${server.servlet.context-path:}/management/**
    title: Gitsearch API
    description: Gitsearch API documentation
    version: 0.0.1
Lukas Kaltenbrunner's avatar
Lukas Kaltenbrunner committed
    terms-of-service-url:
    contact-name:
    contact-url:
    contact-email:
    license: unlicensed
    license-url:
Michael Breu's avatar
Michael Breu committed
  security:
    content-security-policy: "default-src 'self'; frame-src 'self' data:; script-src 'self' 'unsafe-inline' 'unsafe-eval' https://storage.googleapis.com; style-src 'self' 'unsafe-inline'; img-src 'self' data:; font-src 'self' data:"
Lukas Kaltenbrunner's avatar
Lukas Kaltenbrunner committed
# ===================================================================
# Application specific properties
# Add your own application properties here, see the ApplicationProperties class
# to have type-safe configuration, like in the JHipsterProperties above
#
# More documentation is available at:
# https://www.jhipster.tech/common-application-properties/
# ===================================================================

application:
  search:
    highlight-pre: <mark><strong>
    highlight-post: </strong></mark>
Michael Breu's avatar
Michael Breu committed
  gitlab:
    url: https://sharing.codeability-austria.uibk.ac.at/
    guestAccessToken: secreit
    adminAccessToken: secret
  deployment-info:
    commit-id: '${gitCommitId}'
    branch: '${gitBranch}'
    deploymentDate: ${gitCommitDate}