Skip to content

Commit

Permalink
update geoip2
Browse files Browse the repository at this point in the history
  • Loading branch information
noogen committed Sep 20, 2022
1 parent 1e7d119 commit 0098e1b
Show file tree
Hide file tree
Showing 10 changed files with 12 additions and 12 deletions.
6 changes: 2 additions & 4 deletions files/etc/cron.daily/geoip2-update
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
#!/bin/bash
# download geolite2 file
mkdir -p /usr/share/GeoIP/
./root/bin/my-download.sh /usr/share/GeoIP/GeoLite2-ASN.mmdb https://git.io/GeoLite2-ASN.mmdb
./root/bin/my-download.sh /usr/share/GeoIP/GeoLite2-City.mmdb https://git.io/GeoLite2-City.mmdb
./root/bin/my-download.sh /usr/share/GeoIP/GeoLite2-Country.mmdb https://git.io/GeoLite2-Country.mmdb
cd /etc/nginx
./geoip2-download.sh
Binary file added files/etc/nginx/GeoLite2-ASN.mmdb
Binary file not shown.
Binary file added files/etc/nginx/GeoLite2-City.mmdb
Binary file not shown.
Binary file added files/etc/nginx/GeoLite2-Country.mmdb
Binary file not shown.
2 changes: 0 additions & 2 deletions files/etc/nginx/cdn/cdn-arvancloud.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
"""
Util to grab ArvanCloud Inbound addresses
"""
#!/usr/local/bin/python3
# coding: utf-8

import requests

Expand Down
4 changes: 1 addition & 3 deletions files/etc/nginx/cdn/cdn-bunny.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
#!/usr/local/bin/python3
"""
Util to grab ArvanCloud Inbound addresses
Util to grab BunnyCDN Inbound addresses
"""
#!/usr/local/bin/python3
# coding: utf-8

import requests

Expand Down
4 changes: 3 additions & 1 deletion files/etc/nginx/cdn/cdn-cloudflare.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/usr/local/bin/python3
# coding: utf-8
"""
Util to grab Cloudflare Inbound addresses
"""

import requests

Expand Down
1 change: 1 addition & 0 deletions files/etc/nginx/cdn/cdn-fastly.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"""
Util to grab Fastly Inbound addresses
"""

import requests

url = 'https://api.fastly.com/public-ip-list'
Expand Down
2 changes: 0 additions & 2 deletions files/etc/nginx/cdn/cdn-stackpath.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
"""
Util to grab StackPath Inbound addresses
"""
#!/usr/local/bin/python3
# coding: utf-8

import requests

Expand Down
5 changes: 5 additions & 0 deletions files/etc/nginx/geoip2-download.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash
#
curl -sLo GeoLite2-ASN.mmdb https://git.io/GeoLite2-ASN.mmdb
curl -sLo GeoLite2-City.mmdb https://git.io/GeoLite2-City.mmdb
curl -sLo GeoLite2-Country.mmdb https://git.io/GeoLite2-Country.mmdb

0 comments on commit 0098e1b

Please sign in to comment.