Skip to content

Commit

Permalink
Merge pull request #59 from sourcelair/max-request-body-size
Browse files Browse the repository at this point in the history
Control the maximum allowed request body size
  • Loading branch information
parisk committed Feb 14, 2019
2 parents 8db3ec9 + e35a21f commit 053874d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Expand Up @@ -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`)
Expand Down
2 changes: 2 additions & 0 deletions ceryx/nginx/conf/nginx.conf.tmpl
Expand Up @@ -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" }};

Expand Down

0 comments on commit 053874d

Please sign in to comment.