diff --git a/conf/nginx.conf b/conf/nginx.conf index f249cd8..67cbd85 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -28,9 +28,8 @@ location PATHTOCHANGE { include conf.d/yunohost_panel.conf.inc; } -location /seafhttp { - rewrite ^/seafhttp(.*)$ /seafhttp$1 break; - proxy_pass http://127.0.0.1:SEAFILE_FILESERVER_PORT; +location /seafhttp/ { + proxy_pass http://127.0.0.1:SEAFILE_FILESERVER_PORT/; client_max_body_size 0; proxy_connect_timeout 36000s; proxy_read_timeout 36000s; diff --git a/scripts/install b/scripts/install index 56f9020..8004cba 100644 --- a/scripts/install +++ b/scripts/install @@ -124,9 +124,9 @@ sudo su - www-data -c "$final_path/first_launch.exp $admin_email $admin_password if [ "$is_public" = "No" ] then - sudo yunohost app setting seafile unprotected_urls -d + sudo yunohost app setting seafile unprotected_uris -d else - sudo yunohost app setting seafile unprotected_urls -v "/" + sudo yunohost app setting seafile unprotected_uris -v "/" fi # register yunohost service