From cf576111d057c4eb3a5b0bc6490d2a8a110f78db Mon Sep 17 00:00:00 2001 From: Roxy Date: Fri, 7 Jul 2023 09:37:43 +0200 Subject: [PATCH] decided i want to die --- README.md | 4 +++- installer.sh | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 277f269..2593dfe 100644 --- a/README.md +++ b/README.md @@ -7,9 +7,11 @@ This project sets up a simple HTTP proxy using Ruby and Nginx. It's designed to To install the necessary dependencies and set up the proxy, run the following command: ```bash -bash installer.sh +sudo bash installer.sh ``` +Please dont forget to copy the installer from /root/ruby-proxy to your home directory and to change its owner recursively + This will: Install Ruby and the 'webrick' gem. diff --git a/installer.sh b/installer.sh index 85ec4cf..e66dde0 100644 --- a/installer.sh +++ b/installer.sh @@ -47,7 +47,7 @@ read -p "Enter proxy_set_header (the host header for the website you wanna modif # Create the Nginx config file if [ ! -f /etc/nginx/sites-available/ruby-proxy ]; then echo "Creating Nginx configuration file..." - cat << EOF > /etc/nginx/sites-available/ruby-proxy + sudo cat << EOF > /etc/nginx/sites-available/ruby-proxy resolver 8.8.8.8; server {