1
0
Fork 0
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:
Aurelien Vaillant 2023-08-17 16:20:51 +02:00
parent 1e5d23df24
commit beb6c7e399
2 changed files with 6 additions and 2 deletions

View file

@ -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 {

View file

@ -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" ]