add defaults for cloudflare keys

This commit is contained in:
r888888888
2017-12-29 17:15:31 -08:00
parent 00f091ef3e
commit c3aff42458
2 changed files with 18 additions and 1 deletions

3
.env
View File

@@ -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=

View File

@@ -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