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 {