From 708dad64aa3332d9744e05a70f083636972f6dac Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Thu, 8 Feb 2024 12:41:54 +0100 Subject: [PATCH] fix readme and env.example --- README_MANUAL_INSTALLATION.md | 10 ++++++++++ examples/env.example | 3 +++ 2 files changed, 13 insertions(+) diff --git a/README_MANUAL_INSTALLATION.md b/README_MANUAL_INSTALLATION.md index da8a69f7..435dadce 100644 --- a/README_MANUAL_INSTALLATION.md +++ b/README_MANUAL_INSTALLATION.md @@ -40,6 +40,16 @@ Configure project using environment file (you can use provided example as quicks ```bash $ cp examples/env.example .env ``` +You can use these parameters as default for a local test, but default values may not be suitable for an internet-exposed service for security reasons. However, these three variables need to be initialized: +``` + API_DLT + API_DLT_TOKEN + API_RESOLVER + ABAC_TOKEN + ABAC_USER + ABAC_URL +``` +These values should come from an already operational [API_DLT connector](https://gitlab.com/dsg-upc/ereuse-dpp) service instance. 4. Running alembic from oidc module. ``` diff --git a/examples/env.example b/examples/env.example index 1ec807f9..e781473e 100644 --- a/examples/env.example +++ b/examples/env.example @@ -2,6 +2,9 @@ API_DLT='http://$IP_API_DLT' API_DLT_TOKEN=$TOKEN API_RESOLVER='http://$IP_API_RESOLVER' +ABAC_TOKEN=$ABAC_TOKEN +ABAC_USER=$ABAC_USER +ABAC_URL=$ABAC_URL # you might change or register ID_FEDERATED if you change DEVICEHUB_HOST ID_FEDERATED='DH12' # TODO this should be guessed by DEVICEHUB_HOST, and avoid hardcode of ID_FEDERATED