fix readme and env.example

This commit is contained in:
Cayo Puigdefabregas 2024-02-08 12:41:54 +01:00
parent b680a3574d
commit 708dad64aa
2 changed files with 13 additions and 0 deletions

View file

@ -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.
```

View file

@ -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