mirror of
https://github.com/YunoHost-Apps/seafile_ynh.git
synced 2024-09-03 20:26:01 +02:00
Fix nginx security issue
This commit is contained in:
parent
db0cc79e4b
commit
e939ef89ea
2 changed files with 3 additions and 3 deletions
|
@ -26,8 +26,8 @@ location /seafhttp/ {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
location PATHTOCHANGE2media {
|
location PATHTOCHANGE2media/ {
|
||||||
alias ALIASTOCHANGEseafile-server-latest/seahub/media;
|
alias ALIASTOCHANGEseafile-server-latest/seahub/media/;
|
||||||
}
|
}
|
||||||
|
|
||||||
location /seafdav {
|
location /seafdav {
|
||||||
|
|
|
@ -61,7 +61,7 @@ nginx_conf_path=/etc/nginx/conf.d/$old_domain.d/$app.conf
|
||||||
if [ $change_path -eq 1 ]
|
if [ $change_path -eq 1 ]
|
||||||
then
|
then
|
||||||
ynh_replace_string "location $old_path {" "location $new_path {" "$nginx_conf_path"
|
ynh_replace_string "location $old_path {" "location $new_path {" "$nginx_conf_path"
|
||||||
ynh_replace_string "location ${old_path2}media {" "location ${new_path2}media {" "$nginx_conf_path"
|
ynh_replace_string "location ${old_path2}media/ {" "location ${new_path2}media/ {" "$nginx_conf_path"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Change the domain for nginx
|
# Change the domain for nginx
|
||||||
|
|
Loading…
Add table
Reference in a new issue