From 19c46d2d2bf3a02aba89ee0596f8b5f95e15a642 Mon Sep 17 00:00:00 2001 From: frju365 Date: Fri, 31 Aug 2018 01:47:32 +0200 Subject: [PATCH 1/2] [fix] nginx conf --- scripts/install | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/install b/scripts/install index ffa152a..ee17c03 100644 --- a/scripts/install +++ b/scripts/install @@ -271,6 +271,8 @@ ynh_app_setting_set "$app" unprotected_uris "/" # RELOAD NGINX #================================================= +ynh_replace_string "__PORT_WEB__" "$port_web" "../conf/nginx.conf" +ynh_replace_string "__PORT_STREAM__" "$port_stream" "../conf/nginx.conf" # Reload Nginx systemctl reload nginx From aaa1b11ad1ae6c2cc620567ce9dee7a7eba86023 Mon Sep 17 00:00:00 2001 From: frju365 Date: Fri, 31 Aug 2018 01:48:09 +0200 Subject: [PATCH 2/2] Update upgrade --- scripts/upgrade | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/upgrade b/scripts/upgrade index 207858e..3b42aa6 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -116,6 +116,8 @@ ynh_secure_remove $final_path/live/config/initializers/timeout.rb # NGINX CONFIGURATION #================================================= +ynh_replace_string "__PORT_WEB__" "$port_web" "../conf/nginx.conf" +ynh_replace_string "__PORT_STREAM__" "$port_stream" "../conf/nginx.conf" ynh_add_nginx_config #=================================================