From 093b5cc69fec13394e0b38e65aab2aa94c38d583 Mon Sep 17 00:00:00 2001 From: Simponic Date: Mon, 27 Feb 2023 16:43:50 -0700 Subject: [PATCH] Escape dollar signs in put guestbook script --- scripts/put-guestbook-on-this-machine.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/put-guestbook-on-this-machine.sh b/scripts/put-guestbook-on-this-machine.sh index 0b632bc..31cf716 100755 --- a/scripts/put-guestbook-on-this-machine.sh +++ b/scripts/put-guestbook-on-this-machine.sh @@ -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"; } }