nginx: escape variables properly for bash
This commit is contained in:
parent
78cc85cf2d
commit
43cb3eedaa
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue