-
Notifications
You must be signed in to change notification settings - Fork 125
Replace ipdata with geoip db lookup #13497
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
c5b7814 to
a899f00
Compare
dylanjeffers
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nicee
| const url = `https://api.ipdata.co/${ip}?api-key=${config.get( | ||
| 'ipdataAPIKey' | ||
| )}` | ||
| const url = `https://creatornode.audius.co/storage.v1.StorageService/GetIPData?ip=${ip}` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
super nit, and maybe not, but do we want to move the host to an env for easy changing?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I worry a bit b/c identity runs on the old infra stack that we lose track of the env var. have thoughts on consolidating identity into the k8s stack and at that point, i think i'd go through and move a bunch of things to env (and remove others!)
All nodes expose this endpoint, e.g.
https://v.monophonic.digital/storage.v1.StorageService/GetIPData?ip=23.93.215.231
Replace usages of ipdata with this endpoint