Skip to main content

Backend Services Configuration

This document provides an overview of the configuration settings for the backend services of OpenCDMP, based on their respective app.env files.

Backend Service Configuration

Env VariableDescriptionDefault ValueExample
IDP_ISSUER_URIKeycloak realm URL string.-http://<keycloak-hostname>:<port>/realms/<realm-name>
IDP_CLAIMS_ROLES_PATHKeycloak client roles path.-<keycloak_client>.roles
SECURITY_AUDIENCEKeycloak client scope that security is intended for.-<keycloak-client-scope>
CORS_ALLOWED_ORIGINString that contains allowed origin for this server.-http://<hostname>:<port>
DB_URLDatabase connection string.-jdbc:postgresql://<opencdmp-postgres-hostname>:<port>/<database-name>
DB_USERDatabase username string.-<opencdmp-user>
DB_PASSDatabase password string.-<opencdmp-password>
ELASTIC_ENABLEDBoolean value to enable Elastic search.-true
ELASTIC_HOSTURI that contains elastic host.-<elastic-host>:<port>
ELASTIC_USE_SSLBoolean value to enable Elastic SSL.-true
ELASTIC_USERElastic username string.-<opencdmp-elastic-user>
ELASTIC_PASSElastic password string.-<opencdmp-elastic-password>
ELASTIC_PLAN_INDEXElastic index name for plans.-<opencdmp-plans-index>
ELASTIC_DESCRIPTION_INDEXElastic index name for descriptions.-<opencdmp-descriptons-index>
QUEUE_ENABLEDBoolean value to enable queue RabbitMQ server. It must be enabled if we want the backend communicate with the other supplementary services.truetrue
QUEUE_APP_IDRabbitMQ application id string.-<opencdmp-app-id>
QUEUE_NAMERabbitMQ name string.-<rabbit-mq-queue-name>
QUEUE_EXCHANGERabbitMQ name string.-<rabbit-mq-queue-exchange>
RABBIT_HOSTRabbitMQ connection host name.-<hostname>
RABBIT_PORTRabbitMQ connection port.-<port>
RABBIT_USERRabbitMQ username string.-<rabbit-mq-username>
RABBIT_PASSRabbitMQ password string.-<rabbit-mq-password>
KEYCLOAK_API_SERVER_URLKeycloak server URL string.-http://<keycloak-hostname>:<port>
KEYCLOAK_API_REALMKeycloak realm name.-<keycloak-realm>
KEYCLOAK_API_CLIENT_IDKeycloak client id string to get auth token.-<keycloak-client-id>
KEYCLOAK_API_CLIENT_SECRETKeycloak client secret string to get auth token.-<keycloak-client-secret>
KEYCLOAK_API_USERNAMEKeycloak user name string.-<keycloak-username>
KEYCLOAK_API_PASSWORDKeycloak password string.-<keycloak-password>
KEYCLOAK_API_GLOBAL_USER_GROUP_IDUUID group value for role USER.-a04fd333-f127-449e-8fc2-0626570a3899
KEYCLOAK_API_GLOBAL_ADMIN_GROUP_IDUUID group value for role ADMIN.-299f18fe-e271-4625-a4c1-9c3eb313b2ea
KEYCLOAK_API_GLOBAL_INSTALLATION_ADMIN_GROUP_IDUUID group value for role INSTALLATION ADMIN.-88a65fff-dffe-474a-a461-252ff4230203
KEYCLOAK_API_TENANT_ADMIN_GROUP_IDUUID group value for role TEANNT ADMIN.-4453d854-4aea-4d19-af80-7f9d85e5a2c9
KEYCLOAK_API_TENANT_USER_GROUP_IDUUID group value for role TEANNT USER.-c7057c4d-e7dc-49ef-aa5d-02ad3a22bff89
KEYCLOAK_API_TENANT_CONFIG_MANAGER_GROUP_IDUUID group value for role TEANNT CONFIG MANAGER.-09a6977b-719e-4e90-b3fc-3b394d82e05f
KEYCLOAK_API_TENANT_PLAN_MANAGER_GROUP_IDUUID group value for role TEANNT PLAN MANAGER.-37d1fb0e-5e03-47bf-aefc-365c0670f84e
FILE_TRANSFORMER_AUTH_TOKEN_ENDPOINTURL to get keycloak auth token for file transformer services.-http://<keycloak-hostname>:<port>/realms/<realm-name>/protocol/openid-connect/token
FILE_TRANSFORMER_AUTH_CLIENT_IDKeycloak client id string to get auth token for file transformer services.-<keycloak-client-id>
FILE_TRANSFORMER_AUTH_CLIENT_SECRETKeycloak client secret string to get auth token for file transformer services.-<keycloak-client-secret>
FILE_TRANSFORMER_AUTH_SCOPEKeycloak client scope string for file transformer services.-<keycloak-scope>
DEPOSIT_AUTH_TOKEN_ENDPOINTURL to get keycloak auth token for deposit services.-http://<keycloak-hostname>:<port>/realms/<realm-name>/protocol/openid-connect/token
DEPOSIT_AUTH_CLIENT_IDKeycloak client id string to get auth token deposit services.-<keycloak-client-id>
DEPOSIT_AUTH_CLIENT_SECRETKeycloak client secret string to get auth token for deposit services.-<keycloak-client-secret>
DEPOSIT_AUTH_SCOPEKeycloak client scope string for deposit services.-<keycloak-scope>
EVALUATOR_AUTH_TOKEN_ENDPOINTURL to get keycloak auth token for evaluator services.-http://<keycloak-hostname>:<port>/realms/<realm-name>/protocol/openid-connect/token
EVALUATOR_AUTH_CLIENT_IDKeycloak client id string to get auth token evaluator services.-<keycloak-client-id>
EVALUATOR_AUTH_CLIENT_SECRETKeycloak client secret string to get auth token for evaluator services.-<keycloak-client-secret>
EVALUATOR_AUTH_SCOPEKeycloak client scope string for evaluator services.-<keycloak-scope>
FILE_STORAGEFile path to store all application files.-./storage/files
SUPPORTIVE_MATERIAL_USER_GUIDE_PATHFile path to store Supportive Material User Guide.backend/web/src/main/resources/material/user-guide/backend/web/src/main/resources/material/user-guide/
SUPPORTIVE_MATERIAL_ABOUT_PATHFile path to store Supportive Material About.backend/web/src/main/resources/material/about/backend/web/src/main/resources/material/about/
SUPPORTIVE_MATERIAL_TERM_OF_SERVICE_PATHFile path to store Supportive Material Terms of Service.backend/web/src/main/resources/material/terms-of-service/backend/web/src/main/resources/material/terms-of-service/
SUPPORTIVE_MATERIAL_GLOSSARY_PATHFile path to store Supportive Material Glosarry.backend/web/src/main/resources/material/glossary/backend/web/src/main/resources/material/glossary/
SUPPORTIVE_MATERIAL_FAQ_PATHFile path to store Supportive Material FAQ.backend/web/src/main/resources/material/faq/backend/web/src/main/resources/material/faq/
SUPPORTIVE_MATERIAL_COOKIE_POLICY_PATHFile path to store Supportive Material Cookie Policy.backend/web/src/main/resources/material/cookie-policy/backend/web/src/main/resources/material/cookie-policy/
SUPPORTIVE_MATERIAL_LANGUAGE_PATHFile path to store Language files.frontend/src/assets/i18n/frontend/src/assets/i18n/
LOGGING_CONFIG_PATHXml file that stores logging confiiguration.classpath:logging/logback.xmlclasspath:logging/<file-name>.xml
LOGGING_DEFAULT_LOG_LEVELLevel of error to store. Only 4 values can be assigned: INFO, DEBUG, WARM, ERROR-WARN
LOGGING_PATHFile path to store logging.-logs/
TENANT_CONFIG_ENCRYPTION_AES_KEYAES key used to encrypt keycloak client secret for file transformer, deposit, evaluator services.rmpTvZnRWzyisUtFADBcZCn0q7Z75XdzrmpTvZnRWzyisUtFADBcZCn0q7Z75Xdz
TENANT_CONFIG_ENCRYPTION_AES_IVAES IV used to encrypt keycloak client secret for file transformer, deposit, evaluator services.ec05d521a23f80adec05d521a23f80ad
MERGE_ACCOUNT_EXPIRATIONExpiration time (in seconds) for link account notification.1440014400
REMOVE_CREDENTIAL_EXPIRATIONExpiration time (in seconds) for unlink account notification.1440014400
TENANT_SPECIFIC_INVITATION_EXPIRATIONExpiration time (in seconds) for user invite notification to tenant.25920002592000
PLAN_INVITATION_EXTERNAL_USER_EXPIRATIONExpiration time (in seconds) for notification of invitation of external users to a plan.25920002592000
PLAN_INVITATION_EXTERNAL_USER_EXPIRATIONExpiration time (in seconds) for notification of invitation of external users to a plan.25920002592000
LOCALE_TIMEZONETimezone for backend service.UTCUTC
LOCALE_LANGUAGELanguage for backend service.enen
LOCALE_CULTURECulture for backend service.enen
CONTACT_SUPPORT_EMAIL_ADDRESSEmail receiver for contact support notifications.-support@mydomain.com
ACCOUNTING_ENABLEDBoolean value to enable accounting service.-true
ACCOUNTING_URLAccounting service connection URL string.-http://<hostname>:<port>
ACCOUNTING_AUTH_TOKEN_ENDPOINTURL to get keycloak auth token for accounting service.-http://<keycloak-hostname>:<port>/realms/<realm-name>/protocol/openid-connect/token
ACCOUNTING_AUTH_CLIENT_IDKeycloak client id string to get auth token accounting service.-<keycloak-client-id>
ACCOUNTING_AUTH_CLIENT_SECRETKeycloak client secret string to get auth token for accounting service.-<keycloak-client-secret>
ACCOUNTING_AUTH_SCOPEKeycloak client scope string for accounting service.-<keycloak-scope>
KPI_VIEWER_TASK_ENABLEDBoolean value to enable KPI service.-true
KPI_VIEWER_INDICATOR_IDA UUID value to create an indicator.97c2d685-d7d2-4bd1-a287-ba329ad45d7497c2d685-d7d2-4bd1-a287-ba329ad45d74
METRICS_ENABLEDBoolean value to enable metrics.falsetrue
METRICS_USER_COUNT_IDP_CLIENT_ID_UUIDKeycloak Client UUID to get active user sessions count for this client.745cd36a-b8bf-4f47-9523-c861abd2ed7a745cd36a-b8bf-4f47-9523-c861abd2ed7a
METRICS_ENDPOINT_BASE_PATHpath for metrics endopoint.//

Backend configuration for supplementary services