Skip to main content
Version: 0.2.0

Configuration

info

Please note that this content is under development and is not ready for implementation. This status message will be updated as content development progresses.

The Reference implementations config file is used to define the system level config, the apps within the reference implementation system, the apps functions and the connection to the external services.

Example Configuration

The app-config.json file in the root directory contains an example configuration for a value chain called "Truffle". This configuration is pre-set to work with the services created by the Docker Compose setup.

Pre-configured Services

Most of the service endpoints in the example configuration are already set to use the Docker Compose services. The only endpoint you might need to change is the Identity Resolver Service (IDR) endpoint.

  • By default, the IDR service endpoint is set to http://localhost:8080.
  • If you've changed this endpoint, update the dlr values in the config file accordingly.

Updating the Issuer

You will need to update the issuer property value (did:web) inside the vckit object. This should be set to the identifier you created using the Verifiable Credential Service.

For example:

"vckit": {
"issuer": "did:web:your-created-identifier"
}

Reference implementation Configuration File Lifecycle

The Reference implementation system can be tailored to model different value chains using a configuration file. This section explains the lifecycle of this configuration file and how to apply changes.

Location of the Configuration File

The configuration file is named app-config.json and is located in the root directory of the cloned repository. To navigate to this directory, use the following command:

cd tests-untp

Modifying the Configuration File

  1. Open the app-config.json file.
  2. Make the necessary modifications to tailor the Reference implementation system to your desired value chain.
  3. Save the changes to the file.

Applying Configuration Changes

For the modifications to take effect in the Reference implementations, follow these steps:

  1. If the Reference implementation system is currently running, stop it.
  2. After saving the changes to app-config.json, restart the Reference implementation system using the following command:
yarn start

Important Notes

  • Changes to the configuration file will not be reflected in the reference implementations until you restart the Reference implementation system.
  • Always ensure you save the app-config.json file before restarting the Reference implementation system.
  • If you're using the Docker Compose setup, most service endpoints are pre-configured. You only need to update the issuer property in the vckit object and potentially the IDR service endpoint if you've changed it from the default.