From fde426664f62413cc516325f735d6c3e88a01c5d Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Fri, 21 May 2021 14:57:21 +0200 Subject: [PATCH] Fix --- conf/nginx.conf | 2 +- scripts/change_url | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index f74bf7a..a7548a2 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -6,7 +6,7 @@ location __PATH__/ { rewrite ^ https://$server_name$request_uri? permanent; } - proxy_pass http://127.0.0.1:__PORT__/; + proxy_pass http://127.0.0.1:__PORT____PATH__/; proxy_redirect off; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; diff --git a/scripts/change_url b/scripts/change_url index 391f4b0..152e74a 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -101,6 +101,17 @@ then ynh_store_file_checksum --file="/etc/nginx/conf.d/$new_domain.d/$app.conf" fi +#================================================= +# ADD A CONFIGURATION +#================================================= +ynh_script_progression --message="Adding a configuration file..." --weight=1 + +domain="$new_domain" +path="$new_path" +ynh_add_config --template="../conf/miniflux.conf" --destination="$final_path/$app.conf" + +chmod 600 "$final_path/$app.conf" + #================================================= # GENERIC FINALISATION #=================================================