mirror of
https://github.com/YunoHost-Apps/mopidy_ynh.git
synced 2024-09-03 19:46:21 +02:00
Modification config nginx + index si pas de redirection
This commit is contained in:
parent
b5e8f933ce
commit
b488395bb3
2 changed files with 5 additions and 6 deletions
|
@ -1,11 +1,8 @@
|
|||
location __PATHTOCHANGE__ {
|
||||
alias __FINALPATH__/;
|
||||
index index.php;
|
||||
index index.html
|
||||
|
||||
if (!-e $request_filename)
|
||||
{
|
||||
rewrite ^(.+)$ http://__DOMAINNAME__:6680/musicbox_webclient last;
|
||||
}
|
||||
rewrite ^ $scheme://__DOMAINNAME__:6680/musicbox_webclient permanent;
|
||||
|
||||
#--PRIVATE--# Include SSOWAT user panel.
|
||||
#--PRIVATE--include conf.d/yunohost_panel.conf.inc;
|
||||
|
|
|
@ -86,6 +86,8 @@ 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
|
||||
|
||||
sudo cp ../conf/index.html $final_path
|
||||
|
||||
# Copy config mopidy
|
||||
sudo cp ../conf/mopidy.conf /usr/share/mopidy/conf.d/
|
||||
sudo mkdir /root/.config/mopidy
|
||||
|
|
Loading…
Add table
Reference in a new issue