1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/isso_ynh.git synced 2024-09-03 19:35:55 +02:00

fix restore + nginx

This commit is contained in:
navanchauhan 2022-08-13 19:32:36 -04:00
parent 06f899a082
commit ed2caf9037
3 changed files with 9 additions and 3 deletions

View file

@ -12,7 +12,7 @@
setup_sub_dir=0
setup_root=1
setup_nourl=0
setup_private=1
setup_private=0
setup_public=1
upgrade=1
upgrade=1 from_commit=CommitHash

View file

@ -10,5 +10,11 @@ location __PATH__/ {
}
location = / {
return 301 "/js/embed.min.js";
if ($is_args = "") {
return 301 /js/embed.min.js;
}
proxy_pass http://localhost:__PORT__;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Proto $scheme;
}

View file

@ -69,7 +69,7 @@ chown -R $app:www-data "$final_path"
mkdir -p "/var/log/$app"
chmod 750 "/var/log/$app"
chmod -R o-rwx "$final_path"
chmod -R o-rwx "/var/log/$app"
ynh_exec_as $app touch "/var/log/$app/$app.log"