Commit 18d71e71b2234739225fefa992f0d911b2bf6cb8
Exists in
master
and in
89 other branches
Merge branch 'update_upload_size' into 'master'
Update upload size See merge request !33
Showing
6 changed files
with
12 additions
and
1 deletions
Show diff stats
cookbooks/colab/templates/colab.conf.erb
@@ -9,6 +9,7 @@ server { | @@ -9,6 +9,7 @@ server { | ||
9 | 9 | ||
10 | access_log /var/log/nginx/colab.access.log; | 10 | access_log /var/log/nginx/colab.access.log; |
11 | error_log /var/log/nginx/colab.error.log; | 11 | error_log /var/log/nginx/colab.error.log; |
12 | + client_max_body_size 150m; | ||
12 | 13 | ||
13 | location ~ ^/static/img/fav\.[^.]+\.ico$ { | 14 | location ~ ^/static/img/fav\.[^.]+\.ico$ { |
14 | alias /var/lib/colab-assets/spb/fav.ico; | 15 | alias /var/lib/colab-assets/spb/fav.ico; |
cookbooks/gitlab/templates/nginx.conf.erb
@@ -6,9 +6,10 @@ server { | @@ -6,9 +6,10 @@ server { | ||
6 | listen *:81; | 6 | listen *:81; |
7 | 7 | ||
8 | server_name <%= node['config']['external_hostname'] %>; | 8 | server_name <%= node['config']['external_hostname'] %>; |
9 | - underscores_in_headers on; | 9 | + underscores_in_headers on; |
10 | access_log /var/log/nginx/gitlab.access.log; | 10 | access_log /var/log/nginx/gitlab.access.log; |
11 | error_log /var/log/nginx/gitlab.error.log; | 11 | error_log /var/log/nginx/gitlab.error.log; |
12 | + client_max_body_size 20m; | ||
12 | 13 | ||
13 | location /gitlab/assets/ { | 14 | location /gitlab/assets/ { |
14 | alias /usr/lib/gitlab/public/assets/; | 15 | alias /usr/lib/gitlab/public/assets/; |
cookbooks/noosfero/recipes/default.rb
@@ -103,6 +103,11 @@ template '/etc/nginx/conf.d/noosfero.conf' do | @@ -103,6 +103,11 @@ template '/etc/nginx/conf.d/noosfero.conf' do | ||
103 | notifies :restart, 'service[nginx]' | 103 | notifies :restart, 'service[nginx]' |
104 | end | 104 | end |
105 | 105 | ||
106 | +cookbook_file '/usr/lib/noosfero/config/noosfero.yml' do | ||
107 | + owner 'root'; group 'root'; mode 0644 | ||
108 | + source 'noosfero.yml' | ||
109 | + notifies :restart, 'service[noosfero]' | ||
110 | +end | ||
106 | ############################################### | 111 | ############################################### |
107 | # SELinux: permission to access static files noosfero | 112 | # SELinux: permission to access static files noosfero |
108 | ################################################ | 113 | ################################################ |
cookbooks/noosfero/templates/nginx.conf.erb
@@ -12,6 +12,7 @@ server { | @@ -12,6 +12,7 @@ server { | ||
12 | underscores_in_headers on; | 12 | underscores_in_headers on; |
13 | access_log /var/log/nginx/noosfero.access.log; | 13 | access_log /var/log/nginx/noosfero.access.log; |
14 | error_log /var/log/nginx/noosfero.error.log; | 14 | error_log /var/log/nginx/noosfero.error.log; |
15 | + client_max_body_size 150m; | ||
15 | 16 | ||
16 | root /usr/lib/noosfero/public; | 17 | root /usr/lib/noosfero/public; |
17 | location /social/ { | 18 | location /social/ { |
cookbooks/reverse_proxy/templates/reverse_proxy.conf.erb