mirror of
https://github.com/YunoHost-Apps/rainloop_ynh.git
synced 2024-09-03 20:16:18 +02:00
Fix for installation on rootbase of the domain
This commit is contained in:
parent
61f524c43b
commit
54878dba56
3 changed files with 8 additions and 6 deletions
|
@ -5,11 +5,11 @@ location PATHTOCHANGE {
|
|||
rewrite ^ https://$server_name$request_uri? permanent;
|
||||
}
|
||||
|
||||
location ^~ PATHTOCHANGE/app/data {
|
||||
location ^~ ROOTTOCHANGE/app/data {
|
||||
deny all;
|
||||
}
|
||||
|
||||
location ^~ PATHTOCHANGE/pgpback/keys {
|
||||
location ^~ ROOTTOCHANGE/pgpback/keys {
|
||||
deny all;
|
||||
}
|
||||
|
||||
|
|
|
@ -125,10 +125,11 @@
|
|||
nginx_conf_file=/etc/nginx/conf.d/$domain.d/$app.conf
|
||||
sudo cp ../conf/nginx.conf $nginx_conf_file
|
||||
if [ $path = "/" ]; then
|
||||
sudo sed -i "s@PATHTOCHANGE@@g" $nginx_conf_file
|
||||
sudo sed -i "s@ROOTTOCHANGE@@g" $nginx_conf_file
|
||||
else
|
||||
sudo sed -i "s@PATHTOCHANGE@$path@g" $nginx_conf_file
|
||||
sudo sed -i "s@ROOTTOCHANGE@$path@g" $nginx_conf_file
|
||||
fi
|
||||
sudo sed -i "s@PATHTOCHANGE@$path@g" $nginx_conf_file
|
||||
sudo sed -i "s@ALIASTOCHANGE@$final_path/@g" $nginx_conf_file
|
||||
sudo sed -i "s@NAMETOCHANGE@$app@g" $nginx_conf_file
|
||||
sudo chown root: $nginx_conf_file
|
||||
|
|
|
@ -83,10 +83,11 @@
|
|||
nginx_conf_file=/etc/nginx/conf.d/$domain.d/$app.conf
|
||||
sudo cp ../conf/nginx.conf $nginx_conf_file
|
||||
if [ $path = "/" ]; then
|
||||
sudo sed -i "s@PATHTOCHANGE@@g" $nginx_conf_file
|
||||
sudo sed -i "s@ROOTTOCHANGE@@g" $nginx_conf_file
|
||||
else
|
||||
sudo sed -i "s@PATHTOCHANGE@$path@g" $nginx_conf_file
|
||||
sudo sed -i "s@ROOTTOCHANGE@$path@g" $nginx_conf_file
|
||||
fi
|
||||
sudo sed -i "s@PATHTOCHANGE@$path@g" $nginx_conf_file
|
||||
sudo sed -i "s@ALIASTOCHANGE@$final_path/@g" $nginx_conf_file
|
||||
sudo sed -i "s@NAMETOCHANGE@$app@g" $nginx_conf_file
|
||||
sudo chown root: $nginx_conf_file
|
||||
|
|
Loading…
Reference in a new issue