From f88e113b18c49c22258b29894a20c94f9c8327c5 Mon Sep 17 00:00:00 2001 From: Thiago Ribeiro Date: Tue, 19 May 2015 12:06:26 -0300 Subject: [PATCH] Update upload max size in Noosfero. --- cookbooks/noosfero/files/noosfero.yml | 17 +++++++++++++++++ cookbooks/noosfero/recipes/default.rb | 6 ++++++ 2 files changed, 23 insertions(+), 0 deletions(-) create mode 100644 cookbooks/noosfero/files/noosfero.yml diff --git a/cookbooks/noosfero/files/noosfero.yml b/cookbooks/noosfero/files/noosfero.yml new file mode 100644 index 0000000..4c0e86f --- /dev/null +++ b/cookbooks/noosfero/files/noosfero.yml @@ -0,0 +1,17 @@ +development: + #mail_enabled: true + #webmail_url: "http://localhost.localdomain/" + #addthis_enabled: true + #addthis_pub: your-user-name + #addthis_logo: http://localhost:3000/images/logo-200x50.png + #addthis_options: favorites, email, digg, delicious, technorati, slashdot, twitter, more + #gravatar: mm + #googlemaps_initial_zoom: 4 + #exception_recipients: [admin@example.com] + #max_upload_size: 5MB + #hours_until_user_activation_check: 72 + +test: + +production: + max_upload_size: 150MB diff --git a/cookbooks/noosfero/recipes/default.rb b/cookbooks/noosfero/recipes/default.rb index 875f156..485a77d 100644 --- a/cookbooks/noosfero/recipes/default.rb +++ b/cookbooks/noosfero/recipes/default.rb @@ -67,6 +67,12 @@ template '/etc/nginx/conf.d/noosfero.conf' do notifies :restart, 'service[nginx]' end +cookbook_file '/user/lib/noosfero/config/noosfero.yml' do + owner 'root'; group 'root'; mode 0644 + source 'noosfero.yml' + action :create_if_missing + notifies :restart, 'service[noosfero]' +end ############################################### # SELinux: permission to access static files noosfero ################################################ -- libgit2 0.21.2