由于你的GeoIP repo没有开放issues,老是hijacking别人的issue来讨论好像也不是很好。
关于你的geoip repo有些问题请教一下
- 根据你的 config.json input配置,
- 你这是用 ipinfo 叠加到 maxmind上吗?
- 如果是CSV文件的数据源,你怎么确保数据不会重复?毕竟你用csv数据往mmdb插入,若重复,后者会覆盖前者。
- database schema问题, ipinfo 使用
start_ip,end_ip 和 MaxMind 用 network 。因此,你是魔改了 Loyalsoldier/geoip 的代码,还是原来就可以 将 start_ip,end_ip 转成 network?
- 没有添加 国内 IPv4, IP v6的原因? 难道是 如果海外都按规则走了 ,剩下就是geoip:CN嘛? 哈
{
"input": [
{
"type": "maxmindGeoLite2CountryCSV",
"action": "add",
"args": {
"country": "./geolite2/GeoLite2-Country-Locations-en.csv",
"ipv4": "./geolite2/GeoLite2-Country-Blocks-IPv4.csv",
"ipv6": "./geolite2/GeoLite2-Country-Blocks-IPv6.csv",
"ipinfo": "./geolite2/ipinfo/country.csv"
}
},
{
"type": "private",
"action": "add"
}
],
IP to Country Database - IPinfo.io
| FIELD NAME |
EXAMPLE |
DATA TYPE |
DESCRIPTION |
| start_ip |
217.220.0.0 |
TEXT |
Starting IP address of an IP address range |
| end_ip |
217.223.255.255 |
TEXT |
Ending IP address of an IP address range |
| country |
IT |
TEXT |
ISO 3166 country code of the location |
| country_name |
Italy |
TEXT |
Name of the country |
| continent |
EU |
TEXT |
Continent code of the country |
| continent_name |
Europe |
TEXT |
Name of the continent |
Action - build.yml 配置
感觉你的这段 steps,是没有意义的,,,
- name: Download GeoLite2
env:
LICENSE_KEY: ${{ secrets.MAXMIND_GEOLITE2_LICENSE }}
run: |
curl -L "[https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-ASN&license_key=${LICENSE_KEY}&suffix=tar.gz](https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-ASN&license_key=$%7BLICENSE_KEY%7D&suffix=tar.gz)" -o GeoLite2-ASN.tar.gz
curl -L "[https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-ASN-CSV&license_key=${LICENSE_KEY}&suffix=zip](https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-ASN-CSV&license_key=$%7BLICENSE_KEY%7D&suffix=zip)" -o GeoLite2-ASN-CSV.zip
curl -L "[https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-Country&license_key=${LICENSE_KEY}&suffix=tar.gz](https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-Country&license_key=$%7BLICENSE_KEY%7D&suffix=tar.gz)" -o GeoLite2-Country.tar.gz
curl -L "[https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-Country-CSV&license_key=${LICENSE_KEY}&suffix=zip](https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-Country-CSV&license_key=$%7BLICENSE_KEY%7D&suffix=zip)" -o GeoLite2-Country-CSV.zip
由于你的GeoIP repo没有开放issues,老是hijacking别人的issue来讨论好像也不是很好。
关于你的geoip repo有些问题请教一下
start_ip,end_ip和 MaxMind 用network。因此,你是魔改了 Loyalsoldier/geoip 的代码,还是原来就可以 将start_ip,end_ip转成network?{ "input": [ { "type": "maxmindGeoLite2CountryCSV", "action": "add", "args": { "country": "./geolite2/GeoLite2-Country-Locations-en.csv", "ipv4": "./geolite2/GeoLite2-Country-Blocks-IPv4.csv", "ipv6": "./geolite2/GeoLite2-Country-Blocks-IPv6.csv", "ipinfo": "./geolite2/ipinfo/country.csv" } }, { "type": "private", "action": "add" } ],IP to Country Database - IPinfo.io
Action - build.yml 配置
感觉你的这段 steps,是没有意义的,,,
- name: Download GeoLite2 env: LICENSE_KEY: ${{ secrets.MAXMIND_GEOLITE2_LICENSE }} run: | curl -L "[https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-ASN&license_key=${LICENSE_KEY}&suffix=tar.gz](https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-ASN&license_key=$%7BLICENSE_KEY%7D&suffix=tar.gz)" -o GeoLite2-ASN.tar.gz curl -L "[https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-ASN-CSV&license_key=${LICENSE_KEY}&suffix=zip](https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-ASN-CSV&license_key=$%7BLICENSE_KEY%7D&suffix=zip)" -o GeoLite2-ASN-CSV.zip curl -L "[https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-Country&license_key=${LICENSE_KEY}&suffix=tar.gz](https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-Country&license_key=$%7BLICENSE_KEY%7D&suffix=tar.gz)" -o GeoLite2-Country.tar.gz curl -L "[https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-Country-CSV&license_key=${LICENSE_KEY}&suffix=zip](https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-Country-CSV&license_key=$%7BLICENSE_KEY%7D&suffix=zip)" -o GeoLite2-Country-CSV.zip