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:
parent
4cc33e4897
commit
cdee61b275
5 changed files with 7 additions and 0 deletions
|
@ -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/$console_domain.d/$app.conf"
|
||||
|
||||
#=================================================
|
||||
# SPECIFIC BACKUP
|
||||
|
|
|
@ -114,6 +114,8 @@ ynh_script_progression --message="Configuring NGINX web server..." --weight=4
|
|||
|
||||
# Create a dedicated 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
|
||||
|
|
|
@ -77,6 +77,7 @@ fi
|
|||
ynh_script_progression --message="Removing NGINX web server configuration..." --weight=1
|
||||
|
||||
# Remove the dedicated NGINX config
|
||||
ynh_secure_remove --file="/etc/nginx/conf.d/$console_domain.d/$app.conf"
|
||||
ynh_remove_nginx_config
|
||||
|
||||
#=================================================
|
||||
|
|
|
@ -51,6 +51,7 @@ test ! -d $final_path \
|
|||
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/$console_domain.d/$app.conf"
|
||||
|
||||
#=================================================
|
||||
# RECREATE THE DEDICATED USER
|
||||
|
|
|
@ -98,6 +98,8 @@ ynh_script_progression --message="Upgrading NGINX web server configuration..." -
|
|||
|
||||
# Create a dedicated 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
|
||||
|
|
Loading…
Add table
Reference in a new issue