mirror of
https://github.com/YunoHost-Apps/galette_ynh.git
synced 2024-09-03 18:36:28 +02:00
Fix
This commit is contained in:
parent
2b3374ba5d
commit
470badb094
2 changed files with 11 additions and 5 deletions
|
@ -2,7 +2,7 @@
|
||||||
location __PATH__/ {
|
location __PATH__/ {
|
||||||
|
|
||||||
# Path to source
|
# Path to source
|
||||||
alias __FINALPATH__/webroot ;
|
alias __FINALPATH__/webroot;
|
||||||
|
|
||||||
if ($scheme = http) {
|
if ($scheme = http) {
|
||||||
rewrite ^ https://$server_name$request_uri? permanent;
|
rewrite ^ https://$server_name$request_uri? permanent;
|
||||||
|
@ -30,6 +30,10 @@ location __PATH__/ {
|
||||||
include conf.d/yunohost_panel.conf.inc;
|
include conf.d/yunohost_panel.conf.inc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
location ~ __PATH__/(data|config|lib)/ {
|
||||||
|
deny all;
|
||||||
|
}
|
||||||
|
|
||||||
location @__APP__ {
|
location @__APP__ {
|
||||||
rewrite ^(.*)$ __PATH__/index.php last;
|
rewrite ^(.*)$ __PATH__/index.php last;
|
||||||
}
|
}
|
||||||
|
|
|
@ -103,8 +103,8 @@ ynh_script_progression --message="Configuring Galette..." --weight=1
|
||||||
|
|
||||||
ynh_add_config --template="../conf/config.inc.php.dist" --destination="$final_path/config/config.inc.php"
|
ynh_add_config --template="../conf/config.inc.php.dist" --destination="$final_path/config/config.inc.php"
|
||||||
|
|
||||||
chmod 400 "$final_path/config/config.inc.php"
|
#chmod 400 "$final_path/config/config.inc.php"
|
||||||
chown $app "$final_path/config/config.inc.php"
|
#chown $app "$final_path/config/config.inc.php"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# GENERIC FINALIZATION
|
# GENERIC FINALIZATION
|
||||||
|
@ -114,8 +114,10 @@ chown $app "$final_path/config/config.inc.php"
|
||||||
|
|
||||||
#for folder in attachments cache exports files imports logs photos templates_c tempimages
|
#for folder in attachments cache exports files imports logs photos templates_c tempimages
|
||||||
#do
|
#do
|
||||||
chown -R $app "$final_path/data/$folder"
|
chown -R $app "$final_path/data"
|
||||||
chmod -R 775 "$final_path/data/$folder"
|
chmod -R 775 "$final_path/data"
|
||||||
|
chown -R $app "$final_path/config"
|
||||||
|
chmod -R 775 "$final_path/config"
|
||||||
#done
|
#done
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue