From b33062cdcc2325204bf8fee3148eb09681827d4f Mon Sep 17 00:00:00 2001 From: nemsia Date: Sat, 22 Apr 2017 14:02:06 +0200 Subject: [PATCH 1/2] [fix] Change max upload sise from 2Mo to 100Mo --- conf/nginx.conf | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index d8f0904..0d48dc5 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -1,3 +1,6 @@ +# upload max size +client_max_body_size 100M; + location / { if ($scheme = http) { @@ -37,4 +40,4 @@ location /api/v1/streaming { proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; tcp_nodelay on; -} \ No newline at end of file +} From 25bb625228981a94573c2ac13958938e01499da1 Mon Sep 17 00:00:00 2001 From: nemsia Date: Sat, 22 Apr 2017 23:10:37 +0200 Subject: [PATCH 2/2] Copy nginx conf on upgrade --- scripts/upgrade | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/upgrade b/scripts/upgrade index 8d45556..655f22f 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -32,6 +32,7 @@ db_name=$app # Modify Nginx configuration file and copy it to Nginx conf directory sudo sed -i "s@__PATH__@$app@g" ../conf/nginx.conf* sudo sed -i "s@__FINALPATH__@$final_path/@g" ../conf/nginx.conf* +sudo cp ../conf/nginx.conf /etc/nginx/conf.d/$domain.d/$app.conf # Stop Mastodon Services sudo systemctl stop mastodon-*.service