Unverified Commit a713270c authored by Keiven C's avatar Keiven C Committed by GitHub
Browse files

fix: Move NATS max_payload from invalid CLI flag to config file (#5384)


Co-authored-by: default avatarKeiven Chang <keivenchang@users.noreply.github.com>
parent 4ed8584a
...@@ -11,9 +11,12 @@ networks: ...@@ -11,9 +11,12 @@ networks:
services: services:
nats-server: nats-server:
image: nats:2.11.4 image: nats:2.11.4
command: [ "-c", "/etc/nats/nats-server.conf" ]
volumes:
# max_payload set to 15MB to accommodate 10MB decoded embeddings # max_payload set to 15MB to accommodate 10MB decoded embeddings
# Base64 encoding: 10MB → ~13.3MB, 15MB provides ~1.7MB buffer for metadata # Base64 encoding: 10MB → ~13.3MB, 15MB provides ~1.7MB buffer for metadata
command: [ "-js", "--trace", "-m", "8222", "--max_payload", "15728640" ] # max_payload must be configured via configuration file (does not exist as a CLI flag)
- ./nats-server.conf:/etc/nats/nats-server.conf:ro
ports: ports:
- 4222:4222 - 4222:4222
- 6222:6222 - 6222:6222
......
# NATS Server Configuration
# max_payload set to 15MB to accommodate 10MB decoded embeddings
# Base64 encoding: 10MB → ~13.3MB, 15MB provides ~1.7MB buffer for metadata
max_payload: 15728640
# Enable JetStream
jetstream: {}
# Monitoring
http_port: 8222
# Enable trace logging
trace: true
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment