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

Root directory not allowed in nginx.conf

This commit is contained in:
Krakinou 2018-12-17 22:14:19 +01:00
parent 27afc5af7a
commit 3cc095adc1
3 changed files with 11 additions and 2 deletions

View file

@ -65,3 +65,6 @@ sudo yunohost app upgrade calibreweb -u https://github.com/Yunohost-Apps/calibre
## Todo
- [ ] Multiinstance
- [ ] Better Multimedia integration
## License
Package and software are GPL 3.0

View file

@ -97,6 +97,12 @@ pip install --target $final_path/vendor -r $final_path/requirements.txt
#=================================================
# NGINX CONFIGURATION
#=================================================
#Cannot use empty string for X-script-name
if [ $path_url = "/" ] ; then
ynh_replace_string " proxy_set_header X-Script-Name __PATH__;"
" proxy_set_header X-Script-Name /$app;"
../conf/nginx.conf
fi
# Create a dedicated nginx config
ynh_add_nginx_config