From 27ba87a7e2c4f1c604937fd43ae6f694706b5536 Mon Sep 17 00:00:00 2001 From: alrevuelta Date: Tue, 7 Nov 2023 19:14:56 +0100 Subject: [PATCH] fixes --- README.md | 4 ++-- docker-compose.yml | 1 + run_node.sh | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index e713e72..4b86a5b 100644 --- a/README.md +++ b/README.md @@ -50,7 +50,7 @@ curl http://127.0.0.1:8645/debug/v1/version curl http://127.0.0.1:8645/debug/v1/info ``` -You can publish a message to a `contentTopic` that everyone subscribed to it will receive. Note that `payload` is base64 encoded. +**Publish a message to a `contentTopic`**. Everyone subscribed to it will receive it. Note that `payload` is base64 encoded. ``` curl -X POST "http://127.0.0.1:8645/relay/v1/auto/messages" \ @@ -58,7 +58,7 @@ curl -X POST "http://127.0.0.1:8645/relay/v1/auto/messages" \ -d '{"payload":"XaaabsQ==","contentTopic":"/my-app/2/chatroom-1/proto"}' ``` -You can fetch all messages sent in that topic. +**Get messages sent to a `contentTopic`**. Note that any store node in the network is used to reply. ``` curl -X GET "http://127.0.0.1:8645/store/v1/messages?contentTopics=%2Fmy-app%2F2%2Fchatroom-1%2Fproto&pageSize=50&ascending=true" \ -H "accept: application/json" diff --git a/docker-compose.yml b/docker-compose.yml index 9047292..0acdb76 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -47,6 +47,7 @@ services: environment: DOMAIN: ${DOMAIN} NODEKEY: ${NODEKEY} + KEYSTORE_PASSWORD: ${KEYSTORE_PASSWORD} ETH_CLIENT_ADDRESS: *eth_client_address EXTRA_ARGS: ${EXTRA_ARGS} <<: diff --git a/run_node.sh b/run_node.sh index 40fd77c..25fa8c6 100644 --- a/run_node.sh +++ b/run_node.sh @@ -95,7 +95,7 @@ exec /usr/bin/wakunode\ --rln-relay-eth-contract-address="${RLN_RELAY_CONTRACT_ADDRESS}"\ --rln-relay-eth-client-address="${ETH_CLIENT_ADDRESS}"\ --rln-relay-tree-path="/etc/rln_tree"\ - --rln-relay-cred-password="password"\ + --rln-relay-cred-password="${KEYSTORE_PASSWORD}"\ --rln-relay-cred-path="/keystore/keystore.json"\ ${RLN_RELAY_CRED_PATH}\ ${RLN_RELAY_CRED_PASSWORD}\