1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/minchat_ynh.git synced 2024-09-03 19:36:29 +02:00
This commit is contained in:
ericgaspar 2020-07-26 19:52:00 +02:00
parent 73877f15d5
commit 8262156e8c
No known key found for this signature in database
GPG key ID: 574F281483054D44
4 changed files with 10 additions and 10 deletions

View file

@ -12,7 +12,7 @@ location __PATH__/ {
index index.php;
# Common parameter to increase upload size limit in conjunction with dedicated php-fpm file
#client_max_body_size 50M;
client_max_body_size 50M;
try_files $uri $uri/ index.php;
location ~ [^/]\.php(/|$) {
@ -27,6 +27,9 @@ location __PATH__/ {
}
# Include SSOWAT user panel.
include conf.d/yunohost_panel.conf.inc;
#include conf.d/yunohost_panel.conf.inc;
location ~ /(conf|history)(/|$) {
deny all;
}

View file

@ -14,10 +14,6 @@ source /usr/share/yunohost/helpers
# MANAGE SCRIPT FAILURE
#=================================================
ynh_clean_setup () {
### Remove this function if there's nothing to clean before calling the remove script.
true
}
# Exit if an error occurs during the execution of the script
ynh_abort_if_errors

View file

@ -62,9 +62,9 @@ ynh_setup_source --dest_dir="$final_path"
#=================================================
# NGINX CONFIGURATION
#=================================================
ynh_script_progression --message="Configuring nginx web server..." --time --weight=1
ynh_script_progression --message="Configuring NGINX web server..." --time --weight=1
# Create a dedicated nginx config
# Create a dedicated NGINX config
ynh_add_nginx_config
#=================================================
@ -80,11 +80,11 @@ ynh_system_user_create --username=$app
#=================================================
ynh_script_progression --message="Configuring PHP-fpm..." --time --weight=1
phpversion=$(ynh_app_setting_get --app="$app" --key=phpversion)
# Create a dedicated php-fpm config
ynh_add_fpm_config
phpversion=$(ynh_app_setting_get --app="$app" --key=phpversion)
#=================================================
# GENERIC FINALIZATION
#=================================================

View file

@ -20,6 +20,7 @@ domain=$(ynh_app_setting_get --app=$app --key=domain)
path_url=$(ynh_app_setting_get --app=$app --key=path)
is_public=$(ynh_app_setting_get --app=$app --key=is_public)
final_path=$(ynh_app_setting_get --app=$app --key=final_path)
phpversion=$(ynh_app_setting_get --app=$app --key=phpversion)
#=================================================
# CHECK VERSION