Configure the application
After you deploy the Metadata Capture application, configure it to work in your environment. The application uses a configuration file to manage key settings such as feature flags, database connections, and authentication.
Configure the application settings to work in your environment by editing and mounting the configuration file.
-
Open the configuration file located at
/app/config.jsonin your Docker container.Default settingsTo see the default configuration, download the default config.json file from the repository.
-
Modify the settings in the
config.jsonfile to match your environment. Key settings include:- Application settings: Configure
app_titleandcatalogueinformation (name, description, publisher). - Feature flags: Enable or disable features and other functionality flags.
- Application settings: Configure
-
Configure the different aspects of the application:
- Set up authentication: Configure your OpenID Connect (OIDC) provider.
- Configure roles and permissions: Define your organisation's roles and their permissions.
- Configure email notifications: Set up SMTP and manage notification templates.
- Configure UI content: Set default UI messages and manage their overrides.
Schema referenceFor details on the available settings and their expected values and formats, refer to the configuration schema.
-
Mount the configuration file to make your changes persistent. Use either Docker Compose or the
docker runcommand:If you are using Docker Compose:
services:app:environment:- CONFIG_PATH=/app/config.jsonvolumes:- ./path/to/custom/config.json:/app/config.jsonIf you are using Docker run:
docker run -v $(pwd)/path/to/custom/config.json:/app/config.json <your-app-name> -e CONFIG_PATH=/app/config.json
Configure the Health Data Access Body
If your deployment supports health datasets (HealthDCAT-AP), configure the Health Data Access Body (HDAB) details. This information appears in the health metadata section of published dataset records and is used as a reference contact for health data access queries.
Add the health_data_access_body block to your config.json file:
"health_data_access_body": {
"name": "Health Data Access Body Luxembourg",
"contact_name": "HDAB Contact Point",
"contact_email": "hdab@health.lu"
}
| Field | Description |
|---|---|
name | The official name of the Health Data Access Body. Displayed in the health metadata section of dataset records. |
contact_name | The name of the contact point at the HDAB. |
contact_email | The email address for health data access enquiries. |