diff --git a/README.md b/README.md index 41208e3..d47e16b 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,8 @@ Ceryx is configured with the following environment variables: - `CERYX_DEBUG`: Enable debug logs for Ceryx API (default: `true`) - `CERYX_DISABLE_LETS_ENCRYPT`: Disable automatic Let's Encrypt HTTPS certificate generation (default: `false`) - `CERYX_DNS_RESOLVER`: The IP of the DNS resolver to use (default: `127.0.0.11` — the Docker DNS resolver) - - `CERYX_DOCKERIZE_EXTRA_ARGS`: extra arguments, to pass to `dockerize` (default: None) + - `CERYX_DOCKERIZE_EXTRA_ARGS`: Extra arguments, to pass to `dockerize` (default: None) + - `CERYX_MAX_REQUEST_BODY_SIZE`: The maximum body size allowed for an incoming request to Ceryx (default: `100m` — 100 megabytes) - `CERYX_REDIS_HOST`: The Redis host to use as backend (default: `127.0.0.1`) - `CERYX_REDIS_PASSWORD`: Optional password to use for authenticating with Redis (default: None) - `CERYX_REDIS_PORT`: The where Redis should be reached (default: `6379`) diff --git a/ceryx/nginx/conf/nginx.conf.tmpl b/ceryx/nginx/conf/nginx.conf.tmpl index a8b6346..879e483 100644 --- a/ceryx/nginx/conf/nginx.conf.tmpl +++ b/ceryx/nginx/conf/nginx.conf.tmpl @@ -17,6 +17,8 @@ http { tcp_nopush on; tcp_nodelay on; keepalive_timeout 30s 30s; + client_max_body_size {{ default .Env.CERYX_MAX_REQUEST_BODY_SIZE "100m" }}; + # Use the Docker internal DNS, pick your favorite if running outside of Docker resolver {{ default .Env.CERYX_DNS_RESOLVER "127.0.0.11" }};