From 408548ee6682591b2061b88b42f83b992f633517 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Fri, 14 Oct 2022 09:59:55 +0200 Subject: [PATCH] Fix --- conf/nginx.conf | 2 +- scripts/install | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index 9390d5c..79f08aa 100755 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -31,7 +31,7 @@ location / { proxy_pass $scheme://127.0.0.1$request_uri; # proxy_redirect $scheme://__DOMAIN__$request_uri $scheme://soapbox.g0v.moe$request_uri; - proxy_set_header Host example.com; + proxy_set_header Host __BACKEND__; proxy_set_header X-Real-IP $remote_addr; # doesn't work with some browsers diff --git a/scripts/install b/scripts/install index 7e6ea38..5b3ae16 100755 --- a/scripts/install +++ b/scripts/install @@ -76,8 +76,6 @@ ynh_script_progression --message="Configuring NGINX web server..." --weight=2 # Create a dedicated NGINX config ynh_add_nginx_config -ynh_replace_string --match_string="example.com" --replace_string="$backend" --target_file="/etc/nginx/conf.d/$domain.d/$app.conf" - #================================================= # GENERIC FINALIZATION #=================================================