Skip to content

Commit

Permalink
πŸ™ˆ Add client_max_body_size to nginx def. config
Browse files Browse the repository at this point in the history
closes TryGhost#231

Adds `client_max_body_size 50m;` to nginx default config file.
  • Loading branch information
aileen committed Jul 5, 2017
1 parent 5e65b50 commit c117f62
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions extensions/nginx/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ class NginxExtension extends cli.Extension {
http._add('location', '/');
this._addProxyBlock(http.location, ctx.instance.config.get('server.port'));

http._add('client_max_body_size', '50m');

let confFile = `${parsedUrl.hostname}.conf`;

return ctx.instance.template(
Expand Down

0 comments on commit c117f62

Please sign in to comment.