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:
parent
06f899a082
commit
ed2caf9037
3 changed files with 9 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
}
|
|
@ -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"
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue