Nginx Config for client_max_body_size in Opsworks

March 21, 2017

One of the pains we feel when running in Opworks (typically chosen because Heroku gets more expensive at reasonable scale) is finding the right documentation.

Sometimes it’s a matter of looking through the default chef scripts and dissecting JSON configuration more than anything else.

Devops Home Lab

If you are still old school and are using Chef 11 in AWS Opsworks and you need to set “client_max_body_size” to a larger number than default add this to your layers custom json:

"nginx":{
 "client_max_body_size": "10M"
}

This will be applied during Setup so once you have added this go to each of your instances>run command> Setup.

Have fun….and upgrade to Chef 12.

View original post

Advertisements

Hello world!

December 4, 2009

Welcome to WordPress.com. This is your first post. Edit or delete it and start blogging!