mirror of
https://github.com/YunoHost-Apps/my_webapp_ynh.git
synced 2024-09-03 19:46:26 +02:00
Update nginx config
Fix config function
This commit is contained in:
parent
1e5d23df24
commit
beb6c7e399
2 changed files with 6 additions and 2 deletions
|
@ -6,7 +6,8 @@ location __PATH__/ {
|
|||
|
||||
# Default indexes and catch-all
|
||||
index index.html index.php;
|
||||
try_files $uri $uri/ __PATH__/index.php?$args =404;
|
||||
# try_files $uri $uri/ __PATH__/index.php?$args =404;
|
||||
try_files $uri $uri/ __PATH__/index.php?$args;
|
||||
|
||||
# Prevent useless logs
|
||||
location = __PATH__/favicon.ico {
|
||||
|
|
|
@ -148,10 +148,13 @@ ynh_app_config_apply() {
|
|||
ynh_system_user_del_group --username=$app --groups="sftp.app"
|
||||
fi
|
||||
|
||||
if [ "${changed[$custom_error_file]}" == "true" ]
|
||||
if [ "${changed[custom_error_file]}" == "true" ]
|
||||
then
|
||||
CUSTOM_ERROR_FILE=$custom_error_file
|
||||
ynh_add_config --template="nginx-code-error.conf" --destination="$nginx_extra_conf_dir/error-code.conf"
|
||||
else
|
||||
# TODO
|
||||
echo remove config file
|
||||
fi
|
||||
|
||||
if [ "$phpversion" != "none" ]
|
||||
|
|
Loading…
Add table
Reference in a new issue