From c8d48c9053290ae7a7dcd59af078915a780a6f0f Mon Sep 17 00:00:00 2001 From: Pavel Karpy Date: Mon, 21 Feb 2022 15:30:12 +0300 Subject: [PATCH] [#163] node: Add object notification support Signed-off-by: Pavel Karpy --- services/storage/.storage.env | 7 +++++++ services/storage/docker-compose.yml | 12 ++++++++++++ 2 files changed, 19 insertions(+) diff --git a/services/storage/.storage.env b/services/storage/.storage.env index 1af9500..6670ba6 100644 --- a/services/storage/.storage.env +++ b/services/storage/.storage.env @@ -40,6 +40,13 @@ NEOFS_MORPH_RPC_ENDPOINT=ws://morph-chain:30333/ws # Common storage node attribute NEOFS_NODE_ATTRIBUTE_0=User-Agent:NeoFS\/0.26 +NEOFS_NODE_NOTIFICATION_ENABLED=true +NEOFS_NODE_NOTIFICATION_ENDPOINT=tls://nats.neofs.devenv:4222 +NEOFS_NODE_NOTIFICATION_DEFAULT_TOPIC=test +NEOFS_NODE_NOTIFICATION_CERTIFICATE=/etc/neofs-node/nats.tls.cert +NEOFS_NODE_NOTIFICATION_KEY=/etc/neofs-node/nats.tls.key +NEOFS_NODE_NOTIFICATION_CA=/etc/neofs-node/nats.ca.crt + # Object section ## Worker pool capacity of API Object.Put client calls ## Default: 10 diff --git a/services/storage/docker-compose.yml b/services/storage/docker-compose.yml index a30bb20..45ef491 100644 --- a/services/storage/docker-compose.yml +++ b/services/storage/docker-compose.yml @@ -19,6 +19,9 @@ services: - ./../../vendor/neofs-cli:/neofs-cli - ./healthcheck.sh:/healthcheck.sh - ./s04tls.crt:/etc/ssl/certs/s04tls.crt + - ../nats/client-cert.pem:/etc/neofs-node/nats.tls.cert + - ../nats/client-key.pem:/etc/neofs-node/nats.tls.key + - ../nats/ca-cert.pem:/etc/neofs-node/nats.ca.crt stop_signal: SIGKILL env_file: [ ".env", ".storage.env", ".int_test.env" ] environment: @@ -54,6 +57,9 @@ services: - ./../../vendor/neofs-cli:/neofs-cli - ./healthcheck.sh:/healthcheck.sh - ./s04tls.crt:/etc/ssl/certs/s04tls.crt + - ../nats/client-cert.pem:/etc/neofs-node/nats.tls.cert + - ../nats/client-key.pem:/etc/neofs-node/nats.tls.key + - ../nats/ca-cert.pem:/etc/neofs-node/nats.ca.crt stop_signal: SIGKILL env_file: [ ".env", ".storage.env", ".int_test.env" ] environment: @@ -89,6 +95,9 @@ services: - ./../../vendor/neofs-cli:/neofs-cli - ./healthcheck.sh:/healthcheck.sh - ./s04tls.crt:/etc/ssl/certs/s04tls.crt + - ../nats/client-cert.pem:/etc/neofs-node/nats.tls.cert + - ../nats/client-key.pem:/etc/neofs-node/nats.tls.key + - ../nats/ca-cert.pem:/etc/neofs-node/nats.ca.crt stop_signal: SIGKILL env_file: [ ".env", ".storage.env", ".int_test.env" ] environment: @@ -125,6 +134,9 @@ services: - ./healthcheck.sh:/healthcheck.sh - ./s04tls.crt:/tls.crt - ./s04tls.key:/tls.key + - ../nats/client-cert.pem:/etc/neofs-node/nats.tls.cert + - ../nats/client-key.pem:/etc/neofs-node/nats.tls.key + - ../nats/ca-cert.pem:/etc/neofs-node/nats.ca.crt stop_signal: SIGKILL env_file: [ ".env", ".storage.env", ".int_test.env" ] environment: