From 0e4506fabf5fe9e1a3819fd876e86d36a2cd3308 Mon Sep 17 00:00:00 2001 From: mbugeia Date: Tue, 17 Mar 2015 18:47:29 +0100 Subject: [PATCH] Fix nginx and sso config working release \o/ --- conf/nginx.conf | 5 ++--- scripts/install | 4 ++-- 2 files changed, 4 insertions(+), 5 deletions(-) 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