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

nginx for two domains

This commit is contained in:
Limezy 2022-03-25 23:27:18 +07:00
parent 4cc33e4897
commit cdee61b275
5 changed files with 7 additions and 0 deletions

View file

@ -57,6 +57,7 @@ ynh_backup --src_path="$datadir" --is_big
#================================================= #=================================================
ynh_backup --src_path="/etc/nginx/conf.d/$domain.d/$app.conf" ynh_backup --src_path="/etc/nginx/conf.d/$domain.d/$app.conf"
ynh_backup --src_path="/etc/nginx/conf.d/$console_domain.d/$app.conf"
#================================================= #=================================================
# SPECIFIC BACKUP # SPECIFIC BACKUP

View file

@ -114,6 +114,8 @@ ynh_script_progression --message="Configuring NGINX web server..." --weight=4
# Create a dedicated NGINX config # Create a dedicated NGINX config
ynh_add_nginx_config ynh_add_nginx_config
local consolenginxconf="/etc/nginx/conf.d/$console_domain.d/$app.conf"
ynh_add_nginx_config --template=../conf/nginx_console.conf --destination="$consolenginxconf"
#================================================= #=================================================
# CREATE DATA DIRECTORY # CREATE DATA DIRECTORY

View file

@ -77,6 +77,7 @@ fi
ynh_script_progression --message="Removing NGINX web server configuration..." --weight=1 ynh_script_progression --message="Removing NGINX web server configuration..." --weight=1
# Remove the dedicated NGINX config # Remove the dedicated NGINX config
ynh_secure_remove --file="/etc/nginx/conf.d/$console_domain.d/$app.conf"
ynh_remove_nginx_config ynh_remove_nginx_config
#================================================= #=================================================

View file

@ -51,6 +51,7 @@ test ! -d $final_path \
ynh_script_progression --message="Restoring the NGINX configuration..." --weight=1 ynh_script_progression --message="Restoring the NGINX configuration..." --weight=1
ynh_restore_file --origin_path="/etc/nginx/conf.d/$domain.d/$app.conf" ynh_restore_file --origin_path="/etc/nginx/conf.d/$domain.d/$app.conf"
ynh_restore_file --origin_path="/etc/nginx/conf.d/$console_domain.d/$app.conf"
#================================================= #=================================================
# RECREATE THE DEDICATED USER # RECREATE THE DEDICATED USER

View file

@ -98,6 +98,8 @@ ynh_script_progression --message="Upgrading NGINX web server configuration..." -
# Create a dedicated NGINX config # Create a dedicated NGINX config
ynh_add_nginx_config ynh_add_nginx_config
local consolenginxconf="/etc/nginx/conf.d/$console_domain.d/$app.conf"
ynh_add_nginx_config --template=../conf/nginx_console.conf --destination="$consolenginxconf"
# #================================================= # #=================================================
# # ADD A CONFIGURATION # # ADD A CONFIGURATION