nginx: escape variables properly for bash

This commit is contained in:
hayzamjs 2022-11-18 14:13:40 +01:00
parent 78cc85cf2d
commit 43cb3eedaa

View file

@ -12,9 +12,9 @@ location /ubus {
location ~ ^/ttyd(.*)$ { location ~ ^/ttyd(.*)$ {
proxy_http_version 1.1; proxy_http_version 1.1;
proxy_set_header Upgrade '$http_upgrade'; proxy_set_header Upgrade \$http_upgrade;
proxy_set_header Connection "upgrade"; proxy_set_header Connection "upgrade";
proxy_pass http://'$server_addr':7681/'$1'; proxy_pass http://\$server_addr:7681/\$1;
} }
EOT EOT