mirror of
https://github.com/YunoHost-Apps/mopidy_ynh.git
synced 2024-09-03 19:46:21 +02:00
http et non https
This commit is contained in:
parent
e020d19098
commit
379b71cc1d
2 changed files with 10 additions and 5 deletions
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue