1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/domoticz_ynh.git synced 2024-09-03 18:26:17 +02:00

add api_path

This commit is contained in:
Krakinou 2020-12-06 22:10:18 +01:00
parent 3ac63b4c61
commit a4208525c8

View file

@ -97,6 +97,7 @@ then
# Set global variables for nginx helper
domain="$old_domain"
path_url="$new_path"
api_path="$new_api"
# Create a dedicated nginx config
# Create a dedicated nginx config
ynh_add_nginx_config "api_path"
@ -128,7 +129,7 @@ ynh_script_progression --message="Upgrading SSOwat configuration..." --weight=1
# If the app is private, API should stays publicly accessible.
ynh_app_setting_delete --app=$app --key="api_path"
ynh_app_setting_set --app=$app --key="api_path" --value=$new_api
ynh_permission_url --permission="domoticz_API" --url="$new_domain$new_api" --allowed="visitors"
ynh_permission_url --permission domoticz_API --url "$new_domain$new_api"
#=================================================