diff --git a/README.md b/README.md index fca5314..4d16674 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/conf/nginx.conf b/conf/nginx.conf index 1d17164..68b6f4e 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -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; } \ No newline at end of file diff --git a/scripts/install b/scripts/install index d5ee601..ce641bb 100644 --- a/scripts/install +++ b/scripts/install @@ -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.*$"