From f092c15c7f08dc93cc8deeb5a6dbb0bc41929de0 Mon Sep 17 00:00:00 2001 From: Alex Berg Date: Sun, 11 Dec 2022 01:22:52 -0600 Subject: [PATCH] Add "/api/" to "skipped_uris". Fixes https://github.com/YunoHost-Apps/homeassistant_ynh/issues/161 --- scripts/install | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/install b/scripts/install index ecb80a2..d521717 100644 --- a/scripts/install +++ b/scripts/install @@ -53,6 +53,8 @@ ynh_app_setting_set --app=$app --key=final_path --value="$final_path" ynh_app_setting_set --app=$app --key=data_path --value="$data_path" ynh_app_setting_set --app=$app --key=log_file --value="$log_file" ynh_app_setting_set --app=$app --key=path_url --value="$path_url" +# Allow the web UI to use its own API without SSOWat interfering with it. +ynh_app_setting_set --app=$app --key=skipped_uris --value="/api/" #================================================= # STANDARD MODIFICATIONS @@ -184,6 +186,7 @@ ynh_systemd_action --service_name=$app --action=restart ynh_script_progression --message="Configuring permissions..." [ $is_public -eq 1 ] && ynh_permission_update --permission="main" --add="visitors" +ynh_app_setting_set --app=$app --key=skipped_uris --value="/api/" #================================================= # RELOAD NGINX