From 81a1c380660b41c8fdbd2387f78bffb43002e969 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20Fern=C3=A1ndez?= <7312236+fernandezcuesta@users.noreply.github.com> Date: Fri, 10 Jul 2026 09:46:19 +0200 Subject: [PATCH] fix: standardize MAX_RECV_MESSAGE_SIZE environment variable MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jesús Fernández <7312236+fernandezcuesta@users.noreply.github.com> --- README.md | 3 +-- main.go | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 872a410..68a808a 100644 --- a/README.md +++ b/README.md @@ -79,8 +79,7 @@ environment variable. Setting the default-options to "missingkey=error" will ca engine to return an error when a missing key is detected, instead of setting the value to "". The maximum size of received messages (in MB) defaults to `4`. This can be overridden by the -`--max-recv-message-size` CLI flag or the `FUNCTION_GO_TEMPLATING_MAX_RECV_MESSAGE_SIZE` -environment variable. +`--max-recv-message-size` CLI flag or the `MAX_RECV_MESSAGE_SIZE` environment variable. ### Connection Details diff --git a/main.go b/main.go index b7b200b..4d2847c 100644 --- a/main.go +++ b/main.go @@ -19,7 +19,7 @@ type CLI struct { TLSCertsDir string `env:"TLS_SERVER_CERTS_DIR" help:"Directory containing server certs (tls.key, tls.crt) and the CA used to verify client certificates (ca.crt)"` Insecure bool `help:"Run without mTLS credentials. If you supply this flag --tls-server-certs-dir will be ignored."` TTL string `default:"${defaultTTL}" help:"Function global setting for response TTL."` - MaxRecvMessageSize int `default:"4" env:"FUNCTION_GO_TEMPLATING_MAX_RECV_MESSAGE_SIZE" help:"Maximum size of received messages in MB."` + MaxRecvMessageSize int `default:"4" env:"MAX_RECV_MESSAGE_SIZE" help:"Maximum size of received messages in MB."` DefaultSource string `default:"" env:"FUNCTION_GO_TEMPLATING_DEFAULT_SOURCE" help:"Default template source to use when input is not provided to the function."` DefaultOptions string `default:"" env:"FUNCTION_GO_TEMPLATING_DEFAULT_OPTIONS" help:"Comma-separated default template options to use when input is not provided to the function."` }