1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/ampache_ynh.git synced 2024-09-03 18:15:55 +02:00

fix from YunoHost/example_ynh#45 for #21

This commit is contained in:
aymhce 2018-01-11 22:10:06 +01:00
parent 185dd67aec
commit 7ca0ff019f
3 changed files with 10 additions and 1 deletions

View file

@ -1,4 +1,5 @@
location __PATH__ {
#sub_path_only rewrite ^__PATH__$ __PATH__/ permanent;
location __PATH__/ {
alias __FINALPATH__/;

View file

@ -70,6 +70,10 @@ ynh_replace_string "RANDOMKEYTOCHANGE" $(ynh_string_random 24) $final_path/confi
# NGINX CONFIGURATION
#=================================================
if [ "$path_url" != "/" ]
then
ynh_replace_string "^#sub_path_only" "" "../conf/nginx.conf"
fi
ynh_add_nginx_config
#=================================================

View file

@ -45,6 +45,10 @@ ampache_ynh_prepareconfig
#=================================================
# Modify Nginx configuration file and copy it to Nginx conf directory
if [ "$path_url" != "/" ]
then
ynh_replace_string "^#sub_path_only" "" "../conf/nginx.conf"
fi
ynh_add_nginx_config
#=================================================