1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/mobilizon_ynh.git synced 2024-09-03 19:46:19 +02:00

Apply example_ynh

This commit is contained in:
yalh76 2020-02-23 15:31:17 +01:00
parent 8f55fb04a0
commit 9e4a55a90a
4 changed files with 17 additions and 16 deletions

View file

@ -1,4 +1,5 @@
location / {
location / {
# Force usage of https
if ($scheme = http) {
rewrite ^ https://$server_name$request_uri? permanent;
}
@ -15,4 +16,4 @@
# Include SSOWAT user panel.
include conf.d/yunohost_panel.conf.inc;
}
}

View file

@ -125,8 +125,6 @@ ynh_setup_source --dest_dir="$final_path/$app"
#=================================================
ynh_print_info --message="Configuring nginx web server..."
### `ynh_add_nginx_config` will use the file conf/nginx.conf
# Create a dedicated nginx config
ynh_add_nginx_config

View file

@ -52,6 +52,7 @@ test ! -d $final_path \
#=================================================
# RESTORE THE NGINX CONFIGURATION
#=================================================
ynh_print_info --message="Restoring the nginx configuration..."
ynh_restore_file --origin_path="/etc/nginx/conf.d/$domain.d/$app.conf"

View file

@ -34,6 +34,7 @@ admin_email=$(ynh_app_setting_get --app=$app --key=admin_email)
#=================================================
# CHECK VERSION
#=================================================
ynh_print_info --message="Checking version..."
upgrade_type=$(ynh_check_app_version_changed)