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

Skip to content
Snippets Groups Projects
application-dev.yml 6.59 KiB
Newer Older
Lukas Kaltenbrunner's avatar
Lukas Kaltenbrunner committed
# ===================================================================
# Spring Boot configuration for the "dev" profile.
#
# This configuration overrides the application.yml file.
#
# 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
# ===================================================================

logging:
  level:
    ROOT: DEBUG
Michael Breu's avatar
Michael Breu committed
    tech.jhipster: DEBUG
    org.hibernate.SQL: DEBUG
    at.ac.uibk.gitsearch: INFO
Michael Breu's avatar
Michael Breu committed
    org.glassfish.jersey.client.ClientExecutorProvidersConfigurator: INFO
    javax.management.mbeanserver: INFO
    jdk.event.security: INFO
management:
  health:
    elasticsearch:
      enabled: false

Lukas Kaltenbrunner's avatar
Lukas Kaltenbrunner committed
spring:
Eduard Frankford's avatar
Eduard Frankford committed
  #  profiles:
  #    active: dev
  #    include:
  #      - doc-api
  # Uncomment to activate TLS for the dev profile
  #- tls
Eduard Frankford's avatar
Eduard Frankford committed
  main:
    allow-bean-definition-overriding: true
Lukas Kaltenbrunner's avatar
Lukas Kaltenbrunner committed
  devtools:
    restart:
Michael Breu's avatar
Michael Breu committed
      enabled: true
Lukas Kaltenbrunner's avatar
Lukas Kaltenbrunner committed
      additional-exclude: static/**,.h2.server.properties
    livereload:
      enabled: false # we use Webpack dev server + BrowserSync for livereload
  jackson:
    serialization:
      indent-output: true
  datasource:
    type: com.zaxxer.hikari.HikariDataSource
    url: jdbc:h2:file:./target/h2db/db/gitsearch;DB_CLOSE_DELAY=-1
    username: gitsearch
    password:
    hikari:
      poolName: Hikari
      auto-commit: false
  h2:
    console:
Michael Breu's avatar
Michael Breu committed
      # disable spring boot built-in h2-console since we start it manually with correct configuration
      enabled: true
Lukas Kaltenbrunner's avatar
Lukas Kaltenbrunner committed
  jpa:
Michael Breu's avatar
Michael Breu committed
    database-platform: tech.jhipster.domain.util.FixedH2Dialect
  elasticsearch:
    rest:
      uris: http://localhost:9200
Lukas Kaltenbrunner's avatar
Lukas Kaltenbrunner committed
  liquibase:
    # Remove 'faker' if you do not want the sample data to be loaded automatically
    contexts: dev, faker
  mail:
Lukas Kaltenbrunner's avatar
Lukas Kaltenbrunner committed
    port: 25
    from: artemis-support-informatik@uibk.ac.at
    username: ${MAIL_USERNAME}
    password: ${MAIL_PASSWORD}
    smtp:
      auth: true
      starttls:
        enable: true
        required: true

Lukas Kaltenbrunner's avatar
Lukas Kaltenbrunner committed
  messages:
    cache-duration: PT1S # 1 second, see the ISO 8601 standard
  thymeleaf:
    cache: false
Michael Breu's avatar
Michael Breu committed
  security:
    oauth2:
      client:
        provider:
          oidc:
Philipp Gritsch's avatar
Philipp Gritsch committed
            issuer-uri: https://keycloak.codeability-austria.uibk.ac.at/auth/realms/gitsearch
Michael Breu's avatar
Michael Breu committed
        registration:
          oidc:
            client-id: ${OIDC_KEYCLOAK_CLIENTID}
            client-secret: ${OIDC_KEYCLOAK_SECRET}
            scope: openid,profile,email
Eduard Frankford's avatar
Eduard Frankford committed
          #  gitlabOidc:
          #    client-id: ${GITLAB_OIDC_CLIENTID}
          #    client-secret: ${GITLAB_OIDC_CLIENT_SECRET}
          #    scope: api,read_user,read_api,read_repository,write_repository,read_registry,write_registry,sudo,openid,profile,email
Lukas Kaltenbrunner's avatar
Lukas Kaltenbrunner committed
server:
  port: 8080

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

jhipster:
  cache: # Cache configuration
    ehcache: # Ehcache configuration
      time-to-live-seconds: 3600 # By default objects stay 1 hour in the cache
      max-entries: 100 # Number of objects in each cache entry
Michael Breu's avatar
Michael Breu committed
  # CORS is only enabled by default with the "dev" profile
Lukas Kaltenbrunner's avatar
Lukas Kaltenbrunner committed
  cors:
Michael Breu's avatar
Michael Breu committed
    # Allow Ionic for JHipster by default (* no longer allowed in Spring Boot 2.4+)
    allowed-origins: 'http://localhost:8100,https://localhost:8100,http://localhost:9000,https://localhost:9000,http://localhost:4200,https://localhost:4200'
Lukas Kaltenbrunner's avatar
Lukas Kaltenbrunner committed
    allowed-methods: '*'
    allowed-headers: '*'
Michael Breu's avatar
Michael Breu committed
    exposed-headers: 'Authorization,Link,X-Total-Count,X-${jhipster.clientApp.name}-alert,X-${jhipster.clientApp.name}-error,X-${jhipster.clientApp.name}-params'
Lukas Kaltenbrunner's avatar
Lukas Kaltenbrunner committed
    allow-credentials: true
    max-age: 1800
  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: https://secure.gravatar.com/;connect-src 'self' http://localhost:9001  ws://localhost:9001; font-src 'self' data:"
Michael Breu's avatar
Michael Breu committed
    oauth2:
      audience:
    # TODO: audience seems not really relevant, could be omitted? It is identical with client-id above
    #        - ${GITLAB_OIDC_CLIENT_SECRET}
Lukas Kaltenbrunner's avatar
Lukas Kaltenbrunner committed
    authentication:
      jwt:
        # This token must be encoded using Base64 and be at least 256 bits long (you can type `openssl rand -base64 64` on your command line to generate a 512 bits one)
        base64-secret: ${JWT_BASE_SECRET}
Lukas Kaltenbrunner's avatar
Lukas Kaltenbrunner committed
        # Token is valid 24 hours
        token-validity-in-seconds: 86400
        token-validity-in-seconds-for-remember-me: 2592000
  mail: # specific JHipster mail property, for standard properties see MailProperties
    base-url: http://127.0.0.1:8080
Eduard Frankford's avatar
Eduard Frankford committed
    from: no-reply@uibk.ac.at
Eduard Frankford's avatar
Eduard Frankford committed
    enabled: true
Lukas Kaltenbrunner's avatar
Lukas Kaltenbrunner committed
  logging:
    use-json-format: false # By default, logs are not in Json format
    logstash: # Forward logs to logstash over a socket, used by LoggingConfiguration
      enabled: false
      host: localhost
      port: 5000
      queue-size: 512
  audit-events:
    retention-period: 30 # Number of days before audit events are deleted.

# ===================================================================
# 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/
# ===================================================================

Michael Breu's avatar
Michael Breu committed
application:
  frontEndUrl: http://localhost:9001
Michael Breu's avatar
Michael Breu committed
  registeredConnectors:
    - url: 'http://localhost:8081/api/sharing/config'
      accessToken: ${SHARING_CONFIG_ACCESS_TOKEN}
    - url: 'http://localhost:8082/api/sharingPluginConfig'
      accessToken: ${SHARING_PLUGIN_ACCESS_TOKEN}
Michael Breu's avatar
Michael Breu committed
  registeredConnectorsCallBackURL: http://localhost:8080/api
Michael Breu's avatar
Michael Breu committed
  installationName: Sharing Plattform (Development)
    url: ${SECURITY_OAUTH2_CLIENT_PROVIDER_GITLABOIDC_ISSUERURI}
    guestAccessToken: ${APPLICATION_GITLAB_GENERALACCESSTOKEN}
    adminAccessToken: ${APPLICATION_GITLAB_ADMINACCESSTOKEN}
  oeResource:
    oerLink: https://oeresource-dev.logic.at
    apiLink: https://oeresource-dev.logic.at/en/meta/api/v1?format=json

edu-sharing-integration:
  enabled: true