Skip to content
Snippets Groups Projects
Verified Commit dfc754ae authored by Hutomo Saleh's avatar Hutomo Saleh
Browse files

refactor: add optional env variables for app properties

parent 28e4d23a
No related branches found
No related tags found
1 merge request!52feat/trivyEndpoint
Pipeline #108717 passed
# Config for the OpencoDE platform
# Token can be an empty string to access public repositories only
opencode.host=https://gitlab.opencode.de/
opencode.host=${GITLAB_HOST:https://gitlab.opencode.de/}
opencode.access-token=${OC_GL_APIKEY}
opencode.user-name=${OC_GL_USER}
projects.project-ids=${PROJECT_IDS}
......@@ -17,7 +17,7 @@ security.hmac-key=${HMAC_KEY}
# Tool APIs
opencode.api.base-path=https://software.opencode.de/api/v1/project/
opencode.api.ort=/cve-result
opencode.api.toolService=localhost:8082/api/tool-service
opencode.api.toolService=${TOOL_SERVICE_FULL_URL:http://tool-service:8082/api/toolresults}
opencode.api.auth=https://sl.dev.o4oe.de/api/
opencode.api.auth-api-key=${AUTH_API_KEY}
# OCCMD specific settings
......@@ -53,11 +53,9 @@ spring.jpa.generate-ddl=true
spring.jpa.show-sql=false
#---
spring.config.activate.on-profile=local
opencode.host=https://gitlab.dev.o4oe.de/
opencode.analyze-private-repos=true
# Tool APIs
opencode.api.base-path=https://sl.dev.o4oe.de/api/v1/project/
opencode.api.toolService=${TOOL_SERVICE_FULL_URL}
opencode.api.auth=https://sl.dev.o4oe.de/api/receive-session/
# Database Settings
spring.datasource.url=jdbc:postgresql://${host}:26257/${DB_NAME}?sslmode=disable&user=root
......@@ -67,7 +65,7 @@ spring.config.import=optional:classpath:.env[.properties]
#---
spring.config.activate.on-profile=dev
# Config for the OpencoDE platform
opencode.host=https://gitlab.dev.o4oe.de/
opencode.host=${GITLAB_HOST:https://gitlab.dev.o4oe.de/}
opencode.analyze-private-repos=true
# Tool APIs
opencode.api.base-path=https://sl.dev.o4oe.de/api/v1/project/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment

Consent

On this website, we use the web analytics service Matomo to analyze and review the use of our website. Through the collected statistics, we can improve our offerings and make them more appealing for you. Here, you can decide whether to allow us to process your data and set corresponding cookies for these purposes, in addition to technically necessary cookies. Further information on data protection—especially regarding "cookies" and "Matomo"—can be found in our privacy policy. You can withdraw your consent at any time.