From 5b4c36e28ff3ca662e97c020e87f033662d0d14d Mon Sep 17 00:00:00 2001 From: JoonHyeok Han Date: Tue, 25 Mar 2025 12:39:38 +0900 Subject: [PATCH] =?UTF-8?q?chore:=20nginx=20upstream=20=EC=84=A4=EC=A0=95?= =?UTF-8?q?=20sed=20=EB=AA=85=EB=A0=B9=EC=96=B4=20=EC=88=98=EC=A0=95=20#36?= =?UTF-8?q?8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/switch.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/switch.sh b/scripts/switch.sh index b6f6a2fb..3adb510d 100644 --- a/scripts/switch.sh +++ b/scripts/switch.sh @@ -44,7 +44,7 @@ switch() { local target=$2 log "Switching from $current to $target..." - sed -i "s|http://$current|http://$target|" $NGINX_CONFIGURATION_FILE + sed -i -E "s|proxy_pass[[:space:]]+http://[^;]+;|proxy_pass http://$target;|g" $NGINX_CONFIGURATION_FILE docker exec nginx nginx -s reload log "Complete to switch container. ($current -> $target)" }