Skip to content

Commit

Permalink
Setting default maxBytes size of 1 MB, updating README & CHANGELOG
Browse files Browse the repository at this point in the history
  • Loading branch information
avoidwork committed Aug 6, 2014
1 parent 480f4e8 commit 6dbdd94
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

## 0.3.1
- Added `maxBytes` configuration flag to enforce limits on `PATCH`, `POST`, & `PUT` requests, added a test
- Set `maxBytes` to a default of 1 MB
- Upgraded turtle.io to 2.2.4

## 0.3.0
Expand Down
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,16 @@ Rate limiting is controlled by configuration, and is disabled by default. Rate l
}
```

## Limiting upload size
A 'max byte' limit can be enforced on all routes that handle `PATCH`, `POST`, & `PUT` requests. The default limit is 1 MB (1048576 b).

```javascript
{
"maxBytes": 5242880
}
```


## Logging
Standard log levels are supported, and are emitted (by configuration) to `stdout` & `stderr`, & `syslog`.

Expand Down
2 changes: 1 addition & 1 deletion config.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"dtrace": false,
"syslog": false
},
"maxBytes": 0,
"maxBytes": 1048576,
"session": {
"key": "",
"max_age": 60000
Expand Down

0 comments on commit 6dbdd94

Please sign in to comment.