From abe84fc59f69d1ba996f653934f3ba89d815b8bb Mon Sep 17 00:00:00 2001 From: Krakinou Date: Sat, 29 Jul 2023 15:00:56 +0200 Subject: [PATCH] tweak nginx conf for X-script-Name --- scripts/change_url | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/change_url b/scripts/change_url index 5195dab..6599a65 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -28,6 +28,11 @@ ynh_systemd_action --service_name=$app --action="stop" # MODIFY URL IN NGINX CONF #================================================= ynh_script_progression --message="Updating NGINX web server configuration..." --weight=1 +#Cannot use empty string for X-script-name, causes an issue in the python prg +if [ $path_url = "/" ] ; then + ynh_replace_string " proxy_set_header X-Script-Name" "# proxy_set_header X-Script-Name" ../conf/nginx.conf +fi + ynh_change_url_nginx_config #=================================================