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."` }