diff --git a/conf/nginx.conf b/conf/nginx.conf index 260b23d..599793e 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -30,7 +30,7 @@ location /seafhttp/ { location __PATH__/media/ { - alias __FINALPATH__seafile-server-latest/seahub/media/; + alias __FINALPATH__/seafile-server-latest/seahub/media/; } location /seafdav { diff --git a/scripts/change_url b/scripts/change_url index f22c7fd..e4ce3a9 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -16,7 +16,7 @@ source ./_common.sh # Retrive arguments old_domain=$YNH_APP_OLD_DOMAIN -domain=$YNH_APP_OLD_DOMAIN +domain=$YNH_APP_NEW_DOMAIN old_path=$(ynh_normalize_url_path ${YNH_APP_OLD_PATH:-'/'}) path_url=$(ynh_normalize_url_path ${YNH_APP_NEW_PATH:-'/'}) seahub_port=$(ynh_app_setting_get $app seahub_port) diff --git a/scripts/install b/scripts/install index 5a91fcc..803576f 100644 --- a/scripts/install +++ b/scripts/install @@ -101,7 +101,7 @@ echo 'SERVE_STATIC = False' | tee -a $final_path/conf/seahub_settings.py echo 'MEDIA_URL = "'$path_url2'media/"' | tee -a $final_path/conf/seahub_settings.py echo 'COMPRESS_URL = MEDIA_URL' | tee -a $final_path/conf/seahub_settings.py echo "STATIC_URL = MEDIA_URL + 'assets/'" | tee -a $final_path/conf/seahub_settings.py -echo "LOGIN_URL = '"$path2"accounts/login/'" | tee -a $final_path/conf/seahub_settings.py +echo "LOGIN_URL = '"$path_url2"accounts/login/'" | tee -a $final_path/conf/seahub_settings.py echo "ALLOWED_HOSTS = ['"$domain"']" | tee -a $final_path/conf/seahub_settings.py # Email configuration