add defaults for cloudflare keys
This commit is contained in:
3
.env
3
.env
@@ -82,3 +82,6 @@
|
||||
# export DANBOORU_IQDBS_SERVER=
|
||||
# export DANBOORU_CCS_SERVER=
|
||||
# export DANBOORU_CCS_KEY=
|
||||
# export DANBOORU_CLOUDFLARE_KEY=
|
||||
# export DANBOORU_CLOUDFLARE_EMAIL=
|
||||
# export DANBOORU_CLOUDFLARE_ZONE=
|
||||
@@ -505,6 +505,10 @@ module Danbooru
|
||||
true
|
||||
end
|
||||
|
||||
def image_magick_srgb_profile_path
|
||||
# "/usr/share/ghostscript/9.06/Resource/ColorSpace/sRGB"
|
||||
end
|
||||
|
||||
# For downloads, if the host matches any of these IPs, block it
|
||||
def banned_ip_for_download?(ip_addr)
|
||||
raise ArgumentError unless ip_addr.is_a?(IPAddr)
|
||||
@@ -661,6 +665,16 @@ module Danbooru
|
||||
|
||||
def rakismet_url
|
||||
end
|
||||
|
||||
# Cloudflare data
|
||||
def cloudflare_email
|
||||
end
|
||||
|
||||
def cloudflare_zone
|
||||
end
|
||||
|
||||
def cloudflare_key
|
||||
end
|
||||
end
|
||||
|
||||
class EnvironmentConfiguration
|
||||
|
||||
Reference in New Issue
Block a user