mirror of
https://github.com/YunoHost-Apps/my_webapp_ynh.git
synced 2024-09-03 19:46:26 +02:00
Remove duplicate nginx config
Clear manifest data, option only available with the config panel Try to setup the config panel Set the version number
This commit is contained in:
parent
adb9f09d60
commit
74526f2e53
4 changed files with 19 additions and 17 deletions
|
@ -20,12 +20,6 @@ location __PATH__/ {
|
||||||
access_log off;
|
access_log off;
|
||||||
}
|
}
|
||||||
|
|
||||||
# Build error access
|
|
||||||
error_page 404 /error/404.html;
|
|
||||||
location = __PATH__/error/404.html {
|
|
||||||
internal;
|
|
||||||
}
|
|
||||||
|
|
||||||
# Deny access to hidden files and directories
|
# Deny access to hidden files and directories
|
||||||
location ~ ^__PATH__/(.+/|)\.(?!well-known\/) {
|
location ~ ^__PATH__/(.+/|)\.(?!well-known\/) {
|
||||||
deny all;
|
deny all;
|
||||||
|
|
|
@ -18,13 +18,22 @@ name = "My Webapp configuration"
|
||||||
visible = "with_sftp"
|
visible = "with_sftp"
|
||||||
help = "If a password already exist, leave blank and it will not be replaced."
|
help = "If a password already exist, leave blank and it will not be replaced."
|
||||||
|
|
||||||
[main.error]
|
[main.code_error]
|
||||||
name = "Html Custom error"
|
name = "Html Custom error"
|
||||||
|
|
||||||
[main.error.errorfile]
|
[main.code_error.custom_error_file]
|
||||||
ask = "HTML Path"
|
ask = "Activate the custom error file use"
|
||||||
|
type = "boolean"
|
||||||
|
default = false
|
||||||
|
# default = "/404.html"
|
||||||
|
help = "you enable this, you can create a custom `404.html` file at the root of your app to act as the custom 404 error page"
|
||||||
|
|
||||||
|
[main.code_error.path_folder]
|
||||||
|
ask = "Specifie folder where your error file are sto"
|
||||||
type = "string"
|
type = "string"
|
||||||
default = "/404.html"
|
default = "/"
|
||||||
|
help = "You can set where your error file are store in your www folder."
|
||||||
|
|
||||||
|
|
||||||
[main.php_fpm_config]
|
[main.php_fpm_config]
|
||||||
name = "PHP-FPM configuration"
|
name = "PHP-FPM configuration"
|
||||||
|
|
|
@ -5,7 +5,7 @@ name = "My Webapp"
|
||||||
description.en = "Custom Web app with SFTP access to serve static (HTML, CSS, JS) and PHP files"
|
description.en = "Custom Web app with SFTP access to serve static (HTML, CSS, JS) and PHP files"
|
||||||
description.fr = "Application Web personnalisée avec accès SFTP pour servir des fichiers statiques (HTML, CSS, JS) et PHP"
|
description.fr = "Application Web personnalisée avec accès SFTP pour servir des fichiers statiques (HTML, CSS, JS) et PHP"
|
||||||
|
|
||||||
version = "1.0~ynh17"
|
version = "1.0~ynh15"
|
||||||
|
|
||||||
maintainers = []
|
maintainers = []
|
||||||
|
|
||||||
|
@ -58,12 +58,6 @@ ram.runtime = "50M"
|
||||||
type = "boolean"
|
type = "boolean"
|
||||||
default = false
|
default = false
|
||||||
|
|
||||||
[install.codeerror]
|
|
||||||
ask.en = "Define a path about the 404 error page"
|
|
||||||
ask.fr = "Definir un chemin pour la page d'erreur 404"
|
|
||||||
type = "path"
|
|
||||||
default = "/404.html"
|
|
||||||
|
|
||||||
[resources]
|
[resources]
|
||||||
[resources.system_user]
|
[resources.system_user]
|
||||||
|
|
||||||
|
|
|
@ -148,6 +148,11 @@ ynh_app_config_apply() {
|
||||||
ynh_system_user_del_group --username=$app --groups="sftp.app"
|
ynh_system_user_del_group --username=$app --groups="sftp.app"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ "${changed[errorfile]}" == "true" ]
|
||||||
|
then
|
||||||
|
echo Update error nginx config
|
||||||
|
fi
|
||||||
|
|
||||||
if [ "$phpversion" != "none" ]
|
if [ "$phpversion" != "none" ]
|
||||||
then
|
then
|
||||||
ynh_add_fpm_config --phpversion=$phpversion --usage=$fpm_usage --footprint=$fpm_footprint
|
ynh_add_fpm_config --phpversion=$phpversion --usage=$fpm_usage --footprint=$fpm_footprint
|
||||||
|
|
Loading…
Add table
Reference in a new issue