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:
parent
e60910572b
commit
abe84fc59f
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue