aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornemsia <nemsia@nemsia.org>2017-04-24 23:59:53 +0200
committerGitHub <noreply@github.com>2017-04-24 23:59:53 +0200
commit838f971cf453fe5d92b34531c9c87e59a891ae7d (patch)
treebc0be0e38e1675bb6716cc3cad74cc9b744a553c
parenta087f72f4a140ea822b52947aa6ee025b78e1fdd (diff)
parent2db58a55776e45e1f1fa49411ba07cd9a9cd653a (diff)
downloadmastodon_ynh-838f971cf453fe5d92b34531c9c87e59a891ae7d.tar.gz
mastodon_ynh-838f971cf453fe5d92b34531c9c87e59a891ae7d.tar.bz2
mastodon_ynh-838f971cf453fe5d92b34531c9c87e59a891ae7d.zip
Merge pull request #3 from YunoHost-Apps/master
update
-rw-r--r--conf/nginx.conf5
-rw-r--r--scripts/upgrade1
2 files changed, 5 insertions, 1 deletions
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
+}
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