Commit 1b87c325787b86d366b3b7eb83786c987bbfb004
1 parent
2716cff344
Exists in
master
Increase file upload limit to 10G
Showing 4 changed files with 14 additions and 4 deletions Side-by-side Diff
conf/.ldap_config.sql.swp
No preview for this file type
conf/nginx.conf
... | ... | @@ -3,14 +3,20 @@ location PATHTOCHANGE { |
3 | 3 | if ($scheme = http) { |
4 | 4 | rewrite ^ https://$server_name$request_uri? permanent; |
5 | 5 | } |
6 | + client_max_body_size 10G; | |
6 | 7 | index index.php; |
7 | - try_files $uri $uri/ /index.php?$args; | |
8 | + try_files $uri $uri/ /index.php; | |
8 | 9 | location ~ [^/]\.php(/|$) { |
9 | 10 | fastcgi_split_path_info ^(.+?\.php)(/.*)$; |
10 | 11 | fastcgi_pass unix:/var/run/php5-fpm-NAMETOCHANGE.sock; |
11 | - fastcgi_index index.php; | |
12 | 12 | include fastcgi_params; |
13 | - fastcgi_param REMOTE_USER $remote_user; | |
14 | - fastcgi_param PATH_INFO $fastcgi_path_info; | |
13 | + fastcgi_param REMOTE_USER $remote_user; | |
14 | + fastcgi_param PATH_INFO $fastcgi_path_info; | |
15 | + fastcgi_param HTTPS on; | |
15 | 16 | } |
16 | 17 | } |
18 | + | |
19 | +location ~ ^PATHTOCHANGE/(data|config|\.ht|db_structure\.xml|README) { | |
20 | + deny all; | |
21 | +} | |
22 | + |
conf/php-fpm.ini
scripts/install
... | ... | @@ -35,6 +35,7 @@ sudo mkdir -p $final_path |
35 | 35 | sudo cp -a ../sources/* $final_path |
36 | 36 | sudo cp ../conf/nginx.conf /etc/nginx/conf.d/$domain.d/owncloud.conf |
37 | 37 | sudo cp ../conf/php-fpm.conf /etc/php5/fpm/pool.d/owncloud.conf |
38 | +sudo cp ../conf/php-fpm.ini /etc/php5/fpm/conf.d/20-owncloud.ini | |
38 | 39 | |
39 | 40 | # Change variables in Owncloud configuration |
40 | 41 | sudo sed -i "s@PATHTOCHANGE@$path@g" /etc/nginx/conf.d/$domain.d/owncloud.conf |