1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/kodi_ynh.git synced 2024-09-03 19:26:34 +02:00

Add SSOpanel and switch from skipped_uri to protected_uri

This commit is contained in:
SylvainCecchetto 2017-10-19 14:32:12 +02:00
parent 13686b70ad
commit 625121a6bc
3 changed files with 9 additions and 3 deletions

View file

@ -20,11 +20,11 @@ Kodi for YunoHost
* You can access to the control web interface from the YunoHost pannel
* Kodi directly start after package installation
* Start and stop Kodi from Admin YunoHost services tab
* SSOWat pannel
## To do
* Test control web interface on Raspberry
* Include SSOWat pannel in nginx.conf
* Switch from skipped_uri to protected_uri and try if it still works
* Switch from skipped_uri to protected_uri and try if it still works for jsonrpc and image location
* Add missing elements in remove script
* Add option in manifest to open 8080 port to be able to use Kodi remote smartphone app
* Check if a "/" path still works

View file

@ -8,6 +8,9 @@ location __PATH__/ {
proxy_set_header X-Scheme $scheme;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
# Include SSOWAT user panel.
include conf.d/yunohost_panel.conf.inc;
}
# For kodi
@ -16,4 +19,7 @@ location ~ ^/(image|jsonrpc) {
proxy_pass http://127.0.0.1:8080;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
# Include SSOWAT user panel.
include conf.d/yunohost_panel.conf.inc;
}

View file

@ -101,7 +101,7 @@ sudo chown -R $app:$app /home/$app
#=================================================
ynh_add_nginx_config
ynh_app_setting_set $app skipped_uris "/"
ynh_app_setting_set $app protected_uris "/"
domainregex=$(echo "$domain" | sed 's/-/\%&/g')
ynh_app_setting_set $app skipped_regex "$domainregex/jsonrpc.*$,$domainregex/image.*$"