From 5850c90d84bd3d77a318a47f68d8dc29b16c03ce Mon Sep 17 00:00:00 2001 From: Alireza Hassani Date: Wed, 26 Aug 2026 17:31:56 +0330 Subject: [PATCH] Re-provision storefront nginx when domain host is renamed. Also create origin HTTPS with a self-signed cert on provision so Cloudflare Full does not fall through to another site's default SSL vhost. Co-authored-by: Cursor --- scripts/websites-agent/provision.sh | 44 ++++++++++++++++---- src/business-admin/business-admin.service.ts | 20 +++++---- 2 files changed, 49 insertions(+), 15 deletions(-) diff --git a/scripts/websites-agent/provision.sh b/scripts/websites-agent/provision.sh index cd6b6ff..fe3f46f 100755 --- a/scripts/websites-agent/provision.sh +++ b/scripts/websites-agent/provision.sh @@ -115,13 +115,21 @@ NODE echo "using port $PORT for $SLUG" -if [[ ! -f "$NGINX_AVAILABLE" ]]; then - cat >"$NGINX_AVAILABLE" </dev/null 2>&1 + echo "origin self-signed cert created: $SSL_DIR" +fi +PROXY_COMMON=$(cat <"$NGINX_AVAILABLE" <