Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Menu
Open sidebar
Itzhak Daniel
discourse-templates
Commits
1f529af9
Commit
1f529af9
authored
Oct 18, 2020
by
Itzhak Daniel
Browse files
Updating ip list source file
parent
ca8cec06
Changes
1
Hide whitespace changes
Inline
Side-by-side
stackpath.template.yml
View file @
1f529af9
...
...
@@ -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/3600
4138375
2/ipblocks.txt -O - > /tmp/stackpath-ips
wget https://support.stackpath.com/hc/en-us/article_attachments/3600
7189231
2/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')
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment