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

Remove X-script-Name when root

This commit is contained in:
Krakinou 2019-01-28 22:58:03 +01:00
parent 7bbd113545
commit 0d37d1c138

View file

@ -93,7 +93,7 @@ pip install --target $final_path/vendor -r $final_path/requirements.txt
#================================================= #=================================================
#Cannot use empty string for X-script-name, causes an issue in the python prg #Cannot use empty string for X-script-name, causes an issue in the python prg
if [ $path_url = "/" ] ; then if [ $path_url = "/" ] ; then
ynh_replace_string "X-Script-Name __PATH__;" "X-Script-Name $app;" ../conf/nginx.conf ynh_replace_string " proxy_set_header X-Script-Name" "# proxy_set_header X-Script-Name" ../conf/nginx.conf
fi fi
# Create a dedicated nginx config # Create a dedicated nginx config