From 24cd2b56c6c4149f004ae62d859814e421ad7acd Mon Sep 17 00:00:00 2001 From: Fletcher Nichol Date: Mon, 5 Feb 2024 14:14:35 -0700 Subject: [PATCH] build(deps): upgrade to NATS 2.10.10 Signed-off-by: Fletcher Nichol --- component/nats/BUCK | 2 +- component/nats/nats-server.conf | 16 ++++++++++++++-- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/component/nats/BUCK b/component/nats/BUCK index d0bd9e13d5..6bae0be27c 100644 --- a/component/nats/BUCK +++ b/component/nats/BUCK @@ -9,7 +9,7 @@ docker_image( "nats-server.conf": "component/nats", }, build_args = { - "BASE_VERSION": "2.3.4", + "BASE_VERSION": "2.10.10", }, run_docker_args = [ "--publish", diff --git a/component/nats/nats-server.conf b/component/nats/nats-server.conf index 8d2feb7ee2..4d4d182661 100644 --- a/component/nats/nats-server.conf +++ b/component/nats/nats-server.conf @@ -1,4 +1,16 @@ -port: 4222 -monitor_port: 8222 +# See: https://docs.nats.io/running-a-nats-service/configuration + +# Maximum number of bytes in a message payload. It is not recommended to use +# values over 8MB but `max_payload` can be set up to 64MB. The max payload must +# be equal to or smaller than the `max_pending` value. +# +# Default: 1MB max_payload: 8MB + +# Maximum number of bytes buffered for a connection. +# +# Default: 64MB max_pending: 128MB + +# JetStream configuration +jetstream {}