mirror of
https://github.com/YunoHost-Apps/hubzilla_ynh.git
synced 2024-09-03 19:26:21 +02:00
Adjustements to increase upload amounts
This commit is contained in:
parent
eab2391cde
commit
9cd1f3a54b
3 changed files with 7 additions and 0 deletions
|
@ -19,6 +19,11 @@ location YNH_WWW_PATH {
|
||||||
fastcgi_param REMOTE_USER $remote_user;
|
fastcgi_param REMOTE_USER $remote_user;
|
||||||
fastcgi_param PATH_INFO $fastcgi_path_info;
|
fastcgi_param PATH_INFO $fastcgi_path_info;
|
||||||
fastcgi_param SCRIPT_FILENAME $request_filename;
|
fastcgi_param SCRIPT_FILENAME $request_filename;
|
||||||
|
|
||||||
|
# Set max upload size
|
||||||
|
client_max_body_size UPLOADTOCHANGE;
|
||||||
|
fastcgi_buffers 64 4K;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# .htaccess file from Hubzilla converted using http://winginx.com/en/htaccess
|
# .htaccess file from Hubzilla converted using http://winginx.com/en/htaccess
|
||||||
|
|
|
@ -97,6 +97,7 @@ sudo chown -R www-data:www-data $final_path
|
||||||
# Modify Nginx configuration file and copy it to Nginx conf directory
|
# Modify Nginx configuration file and copy it to Nginx conf directory
|
||||||
sed -i "s@YNH_WWW_PATH@$path@g" ../conf/nginx.conf
|
sed -i "s@YNH_WWW_PATH@$path@g" ../conf/nginx.conf
|
||||||
sed -i "s@YNH_WWW_ALIAS@$final_path@g" ../conf/nginx.conf
|
sed -i "s@YNH_WWW_ALIAS@$final_path@g" ../conf/nginx.conf
|
||||||
|
sed -i "s@UPLOADTOCHANGE@$upload@g" ../conf/nginx.conf
|
||||||
nginxconf=/etc/nginx/conf.d/$domain.d/$app.conf
|
nginxconf=/etc/nginx/conf.d/$domain.d/$app.conf
|
||||||
sudo cp ../conf/nginx.conf $nginxconf
|
sudo cp ../conf/nginx.conf $nginxconf
|
||||||
sudo chown root: $nginxconf
|
sudo chown root: $nginxconf
|
||||||
|
|
|
@ -58,6 +58,7 @@ sudo chown -R www-data:www-data $final_path
|
||||||
# Modify Nginx configuration file and copy it to Nginx conf directory
|
# Modify Nginx configuration file and copy it to Nginx conf directory
|
||||||
sed -i "s@YNH_WWW_PATH@$path@g" ../conf/nginx.conf
|
sed -i "s@YNH_WWW_PATH@$path@g" ../conf/nginx.conf
|
||||||
sed -i "s@YNH_WWW_ALIAS@$final_path@g" ../conf/nginx.conf
|
sed -i "s@YNH_WWW_ALIAS@$final_path@g" ../conf/nginx.conf
|
||||||
|
sed -i "s@UPLOADTOCHANGE@$upload@g" ../conf/nginx.conf
|
||||||
nginxconf=/etc/nginx/conf.d/$domain.d/$app.conf
|
nginxconf=/etc/nginx/conf.d/$domain.d/$app.conf
|
||||||
sudo cp ../conf/nginx.conf $nginxconf
|
sudo cp ../conf/nginx.conf $nginxconf
|
||||||
sudo chown root: $nginxconf
|
sudo chown root: $nginxconf
|
||||||
|
|
Loading…
Add table
Reference in a new issue