From e8a683c79d07a83306ab8881885e26c9525fa528 Mon Sep 17 00:00:00 2001 From: shihaam Date: Tue, 7 Jun 2022 01:15:48 +0500 Subject: [PATCH] readme update - more typos --- nginx-allow-dynamicip/readme.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/nginx-allow-dynamicip/readme.md b/nginx-allow-dynamicip/readme.md index 3b88785..3cc4fd7 100644 --- a/nginx-allow-dynamicip/readme.md +++ b/nginx-allow-dynamicip/readme.md @@ -13,14 +13,14 @@ First, get the script and make it executable: curl -O https://git.shihaam.dev/shihaam/sarmic/raw/branch/master/nginx-allow-dynamicip/nginx-allow-dynamicip.sh chmod +x nginx-allow-dynamicip.sh ``` -Make sure your nginx config server block contain "#DYNAMIC" after the IP you want to change dynamically - +Make sure your nginx config server block contain "#DYNAMIC" after the IP you want to change dynamically\ +Something like the following: ```nginx #Block public access allow 1.1.1.1; #DYNAMIC deny all; ``` -Excute the script as root (or with sudo) with 1st arugement for config file and 2nd arugemt with domain of the IP you want to allow \ +Excute the script as root (or with sudo) with 1st argument for config file and 2nd argument with domain of the IP you want to allow \ `sudo ./nginx-allow-dynamicip.sh db-sarlinode.shihaam.dev home.shihaam.me` ### Automate with cron @@ -34,5 +34,6 @@ I have it configured to update once every hour like this ``` ### Notes It is important that your nginx config files are in `/etc/nginx/sites-available/` and symlinked to `/etc/nginx/sites-enabled/`,\ -This is done by default on Debian and Ubuntu,I noticed this is not how it's configured by default on Arch Linux and CentOS, If you're using those you have bigger issues. +This is done by default on Debian and Ubuntu, I noticed this is not how it's configured by default on Arch Linux and CentOS, If you're using those you have bigger issues. Tested and verifed to work on Debian Linux. +