Newer
Older
# Config for the OpencoDE platform
# Token can be an empty string to access public repositories only
opencode.host=https://gitlab.opencode.de/
opencode.access-token=${OC_GL_APIKEY}
opencode.user-name=${OC_GL_USER}
projects.project-ids=${PROJECT_IDS}
# API key to access this server's API
# The api key is needed for all routes.
# the admin password is needed for the repo changed route.
# It is expected as basic auth with the admin username
# details can be found in configuration/security/WebSecurityConfiguration.kt
security.api-key=${API_KEY}
security.admin-password=${ADMIN_PASSWORD}
security.admin-username=${ADMIN_USERNAME}
security.cors-origin=${CORS_ORIGIN}
security.hmac-key=${HMAC_KEY}

Jan-Niclas Strüwer
committed
# Tool APIs
opencode.api.base-path=https://software.opencode.de/api/v1/project/
opencode.api.ort=/cve-result

Jan-Niclas Strüwer
committed
# OCCMD specific settings
# path to the occmd tool executable
# this can e.g, be the occmd.sh script in this project
occmd.git-clone-target-directory=${GIT_CLONE_TARGET_DIRECTORY}
occmd.occmd-path=${OCCMD_PATH}
# Spring actuator settings
management.server.port=${MANAGEMENT_PORT}
springdoc.use-management-port=${USE_MANAGEMENT_PORT}
management.endpoints.web.exposure.include=health,metrics, openapi, swagger-ui, logfile, loggers, prometheus, auditevents
springdoc.show-actuator=true
spring.main.web-application-type=REACTIVE
server.port=${PORT}

Jan-Niclas Strüwer
committed
# This setting should only be used in dev. In prod we want to switch to update
spring.jpa.properties.hibernate.format_sql=true
spring.jpa.properties.hibernate.enable_lazy_load_no_trans=true
spring.jpa.properties.hibernate.bytecode.use_reflection_optimizer=false
spring.jpa.open-in-view=false
spring.jpa.properties.hibernate.temp.use_jdbc_metadata_defaults=false
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.CockroachDialect
# DB settings
spring.datasource.url=jdbc:postgresql://${host}:26257/${DB_USER}?sslmode=${ssl_mode}&sslrootcert=${ca_crt}&sslcert=${ssl_cert}&sslkey=${ssl_key}
spring.datasource.username=${DB_USER}
spring.datasource.driver-class-name=org.postgresql.Driver
# Generates db schema if it doesn't exist in db
spring.jpa.generate-ddl=true
spring.jpa.show-sql=false
# Import profile specific properties (Default is prod)
spring.config.import=optional:file:${SPRING_PROFILE}.properties