From 379b71cc1d7c891cfaaba2ca340a2606f4c5f3c8 Mon Sep 17 00:00:00 2001 From: magikcypress Date: Wed, 8 Mar 2017 02:20:32 +0100 Subject: [PATCH] http et non https --- conf/nginx.conf | 4 ++-- scripts/install | 11 ++++++++--- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index 3d1cf06..04f8edc 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -1,8 +1,8 @@ location __PATHTOCHANGE__ { - alias __FINALPATH__/; + alias __FINALPATH__; # index index.html - rewrite ^ $scheme://__DOMAINNAME__:6680/musicbox_webclient permanent; + rewrite ^ http://__DOMAINNAME__:6680/musicbox_webclient permanent; #--PRIVATE--# Include SSOWAT user panel. #--PRIVATE--include conf.d/yunohost_panel.conf.inc; diff --git a/scripts/install b/scripts/install index a645942..649ae9e 100644 --- a/scripts/install +++ b/scripts/install @@ -86,12 +86,17 @@ sudo sed -i "s@__PATHTOCHANGE__@$path@g" /etc/nginx/conf.d/$domain.d/$app.conf sudo sed -i "s@__DOMAINNAME__@$domain@g" /etc/nginx/conf.d/$domain.d/$app.conf sudo sed -i "s@__FINALPATH__@$final_path@g" /etc/nginx/conf.d/$domain.d/$app.conf +# Install index.html but it's not necessary sudo cp ../conf/index.html $final_path sudo sed -i "s@__DOMAINNAME__@$domain@g" /etc/nginx/conf.d/$domain.d/$app.conf +# Check permission for $final_path +sudo chown -R www-data $final_path + # Copy config mopidy sudo cp ../conf/mopidy.conf /usr/share/mopidy/conf.d/ sudo mkdir /root/.config/mopidy +# File required for command line 'mopidy local scan' sudo cp ../conf/mopidy.conf /root/.config/mopidy/ # Running Mopidy as a service @@ -100,9 +105,9 @@ sudo systemctl enable mopidy sudo systemctl restart mopidy sudo systemctl status mopidy -# Delete directory and file -# Mopidy create this directory afer install -# but this files create a confli with a mopidy configuration +# Delete directory and file mopidy configuration +# Mopidy create this directory after install +# but this files create a conflit with a mopidy configuration. sudo rm -fr /root/.cache/mopidy sudo rm -fr /root/.config/mopidy sudo rm -fr /root/.local/share/mopidy