ip addresses: add ip lookup api client.

This commit is contained in:
evazion
2020-03-22 23:26:36 -05:00
parent 6a0799fec0
commit 13dab1510c
3 changed files with 37 additions and 0 deletions

View File

@@ -513,6 +513,12 @@ module Danbooru
"https://#{hostname}"
end
# API key for https://ipregistry.co. Used for looking up IP address
# information and for detecting proxies during signup.
def ip_registry_api_key
nil
end
# Cloudflare API token. Used to purge URLs from Cloudflare's cache when a
# post is replaced. The token must have 'zone.cache_purge' permissions.
# https://support.cloudflare.com/hc/en-us/articles/200167836-Managing-API-Tokens-and-Keys