Commit 1f529af9 authored by Itzhak Daniel's avatar Itzhak Daniel
Browse files

Updating ip list source file

parent ca8cec06
......@@ -6,7 +6,7 @@ run:
#!/bin/bash -e
# Download list of StackPath ips
# URL: https://support.stackpath.com/hc/en-us/articles/360001091666-IP-Blocks
wget https://support.stackpath.com/hc/en-us/article_attachments/360041383752/ipblocks.txt -O - > /tmp/stackpath-ips
wget https://support.stackpath.com/hc/en-us/article_attachments/360071892312/ipblocks_Oct-2020.txt -O - > /tmp/stackpath-ips
# Make into nginx commands and escape for inclusion into sed append command
CONTENTS=$(</tmp/stackpath-ips sed 's/^/set_real_ip_from /' | sed 's/$/;/' | tr '\n' '\\' | sed 's/\\/\\n/g')
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment