From e5d9f9cece396f8c82326bf3b458ac4442535db1 Mon Sep 17 00:00:00 2001 From: nemsia Date: Mon, 3 Sep 2018 01:02:28 +0200 Subject: Revert "Nginx : CSP + typo" (#113) --- scripts/install | 3 +++ scripts/upgrade | 5 ++--- 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'scripts') diff --git a/scripts/install b/scripts/install index ffa152a..cd9a1ce 100644 --- a/scripts/install +++ b/scripts/install @@ -134,6 +134,9 @@ ynh_setup_source "$final_path/live" "app-mastodon" # NGINX CONFIGURATION #================================================= +# Create a dedicated nginx config +ynh_replace_string "__PORT_WEB__" "$port_web" "../conf/nginx.conf" +ynh_replace_string "__PORT_STREAM__" "$port_stream" "../conf/nginx.conf" ynh_add_nginx_config #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 207858e..0429013 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -116,11 +116,10 @@ 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 -#================================================= -# UPGRADE MASTODON -#================================================= # Upgrade rbenv and ruby plugins ynh_setup_source "$final_path/.rbenv" "app-rbenv" -- cgit v1.2.3-70-g09d2