Escape dollar signs in put guestbook script

This commit is contained in:
Elizabeth Hunt 2023-02-27 16:43:50 -07:00
parent e99f33fbdd
commit 093b5cc69f
Signed by: simponic
GPG Key ID: 52B3774857EB24B1

View File

@ -1,6 +1,6 @@
#!/bin/sh
nginx_dir=${1:-$nginx_dir}
nginx_dir=${1:-/etc/nginx}
sudo pacman -Syu nginx
@ -57,11 +57,11 @@ server {
location / {
proxy_pass http://soc;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host;
proxy_set_header X-Real-IP \\\$remote_addr;
proxy_set_header X-Forwarded-For \\\$proxy_add_x_forwarded_for;
proxy_set_header Host \\\$host;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Upgrade \\\$http_upgrade;
proxy_set_header Connection "upgrade";
}
}