mirror of
https://github.com/YunoHost-Apps/kodi_ynh.git
synced 2024-09-03 19:26:34 +02:00
Fix inaccess webserver with / path
This commit is contained in:
parent
9971d16d32
commit
fd2afa1df8
2 changed files with 11 additions and 2 deletions
|
@ -25,7 +25,6 @@ Kodi for YunoHost
|
||||||
## To do
|
## To do
|
||||||
* Test control web interface on Raspberry
|
* Test control web interface on Raspberry
|
||||||
* Switch from skipped_uri to protected_uri and try if it still works for jsonrpc and image location
|
* Switch from skipped_uri to protected_uri and try if it still works for jsonrpc and image location
|
||||||
* Check if a "/" path still works
|
|
||||||
* Write the upgrade and backup script
|
* Write the upgrade and backup script
|
||||||
* Check if webserver port (8080) is free
|
* Check if webserver port (8080) is free
|
||||||
|
|
||||||
|
|
|
@ -43,6 +43,7 @@ ynh_webpath_available $domain $path_url
|
||||||
ynh_webpath_register $app $domain $path_url
|
ynh_webpath_register $app $domain $path_url
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# STORE SETTINGS FROM MANIFEST
|
# STORE SETTINGS FROM MANIFEST
|
||||||
#=================================================
|
#=================================================
|
||||||
|
@ -124,7 +125,16 @@ fi
|
||||||
#=================================================
|
#=================================================
|
||||||
# NGINX
|
# NGINX
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_add_nginx_config
|
#ynh_add_nginx_config
|
||||||
|
finalnginxconf="/etc/nginx/conf.d/$domain.d/$app.conf"
|
||||||
|
ynh_backup_if_checksum_is_different "$finalnginxconf"
|
||||||
|
sudo cp ../conf/nginx.conf "$finalnginxconf"
|
||||||
|
|
||||||
|
if [ "$path_url" == "/" ]; then
|
||||||
|
ynh_replace_string "__PATH__/" "/" "$finalnginxconf"
|
||||||
|
else
|
||||||
|
ynh_replace_string "__PATH__" "$path_url" "$finalnginxconf"
|
||||||
|
fi
|
||||||
|
|
||||||
ynh_app_setting_set $app protected_uris "/"
|
ynh_app_setting_set $app protected_uris "/"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue