From 43cb3eedaa6139a9dda6a5229564a8826cbc4e14 Mon Sep 17 00:00:00 2001 From: hayzamjs Date: Fri, 18 Nov 2022 14:13:40 +0100 Subject: [PATCH] nginx: escape variables properly for bash --- net/nginx/files-luci-support/60_nginx-luci-support | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/net/nginx/files-luci-support/60_nginx-luci-support b/net/nginx/files-luci-support/60_nginx-luci-support index 700ef797d..1a4f558d4 100644 --- a/net/nginx/files-luci-support/60_nginx-luci-support +++ b/net/nginx/files-luci-support/60_nginx-luci-support @@ -12,9 +12,9 @@ location /ubus { location ~ ^/ttyd(.*)$ { proxy_http_version 1.1; - proxy_set_header Upgrade '$http_upgrade'; + proxy_set_header Upgrade \$http_upgrade; proxy_set_header Connection "upgrade"; - proxy_pass http://'$server_addr':7681/'$1'; + proxy_pass http://\$server_addr:7681/\$1; } EOT