From 6e23c77579e9bd96146635f3bed4414571d79fc7 Mon Sep 17 00:00:00 2001 From: riking Date: Sat, 5 Jul 2014 13:30:12 -0700 Subject: [PATCH] Add easy configuration for max file upload size Example, in app.yml: params: version: tests-passed upload_size: 10m --- templates/web.template.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/templates/web.template.yml b/templates/web.template.yml index 1f8ddff..01d9751 100644 --- a/templates/web.template.yml +++ b/templates/web.template.yml @@ -18,6 +18,7 @@ params: version: tests-passed home: /var/www/discourse + upload_size: 2m run: - file: @@ -104,6 +105,11 @@ run: from: /server_name.+$/ to: server_name _ ; + - replace: + filename: "/etc/nginx/conf.d/discourse.conf" + from: /client_max_body_size.+$/ + to: client_max_body_size $upload_size ; + - exec: cmd: echo "done configuring web" hook: web_config -- 2.25.1