1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/calibreweb_ynh.git synced 2024-09-03 18:16:20 +02:00

tweak nginx conf for X-script-Name

This commit is contained in:
Krakinou 2023-07-29 15:00:56 +02:00
parent e60910572b
commit abe84fc59f

View file

@ -28,6 +28,11 @@ ynh_systemd_action --service_name=$app --action="stop"
# MODIFY URL IN NGINX CONF # MODIFY URL IN NGINX CONF
#================================================= #=================================================
ynh_script_progression --message="Updating NGINX web server configuration..." --weight=1 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 ynh_change_url_nginx_config
#================================================= #=================================================