Nginx Config for client_max_body_size in Opsworks

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:

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

One thought on “Nginx Config for client_max_body_size in Opsworks”

  1. Reblogged this on Ratedsar's Blog and commented:
    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.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s