diff --git a/.env b/.env index 5807033ab..61c966192 100644 --- a/.env +++ b/.env @@ -36,3 +36,5 @@ uniresolver_driver_did_icon_network_id=2 LEDGIS_LIT_ENDPOINT=https://lit.ledgis.io LEDGIS_LIT_CODE=lit + +uniresolver_driver_did_example_exampleSetting=exampleSetting diff --git a/README.md b/README.md index a9c6e0949..06de9e5ec 100644 --- a/README.md +++ b/README.md @@ -66,6 +66,7 @@ You should then be able to resolve identifiers locally using simple `curl` reque curl -X GET http://localhost:8080/1.0/identifiers/did:bitxhub:appchain001:0xc7F999b83Af6DF9e67d0a37Ee7e900bF38b3D013 curl -X GET http://localhost:8080/1.0/identifiers/did:solid:DSb8Guj9tB1jvsyqrsE3Yi44hwnzrVVQc2gcS1J1dUxy curl -X GET http://localhost:8080/1.0/identifiers/did:lit:AEZ87t1bi5bRxmVh3ksMUi + curl -X GET http://localhost:8080/1.0/identifiers/did:example:0000000000123456 If this doesn't work, see [Troubleshooting](/docs/troubleshooting.md). diff --git a/config.json b/config.json index e798b7932..cbdaf2692 100644 --- a/config.json +++ b/config.json @@ -211,6 +211,11 @@ "pattern": "^(did:lit:(?:[1-9A-HJ-NP-Za-km-z]{21,22}))$", "url": "http://driver-did-lit:8080/", "testIdentifiers": [ "did:lit:AEZ87t1bi5bRxmVh3ksMUi" ] - } + }, + { + "pattern": "^(did:example:.+)$", + "url": "http://uni-resolver-driver-did-example:8080/", + "testIdentifiers": [ "did:example:0000000000123456", "did:example:0000000000456789" ] + } ] } diff --git a/docker-compose.yml b/docker-compose.yml index 4d144eaac..7fd63035f 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -204,3 +204,10 @@ services: LEDGIS_LIT_CODE: ${LEDGIS_LIT_CODE} ports: - "8119:8080" + uni-resolver-driver-did-example: + image: exampleorg/uni-resolver-driver-did-example:latest + environment: + uniresolver_driver_did_example_exampleSetting: ${uniresolver_driver_did_example_exampleSetting} + ports: + - "8120:8080" +