From c3aff42458f69266f8c4bf578a226fb102e8b74b Mon Sep 17 00:00:00 2001 From: r888888888 Date: Fri, 29 Dec 2017 17:15:31 -0800 Subject: [PATCH] add defaults for cloudflare keys --- .env | 5 ++++- config/danbooru_default_config.rb | 14 ++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/.env b/.env index 5d5cfe4c8..5a7e0f1ab 100644 --- a/.env +++ b/.env @@ -81,4 +81,7 @@ # export DANBOORU_IQDBS_AUTH_KEY= # export DANBOORU_IQDBS_SERVER= # export DANBOORU_CCS_SERVER= -# export DANBOORU_CCS_KEY= \ No newline at end of file +# export DANBOORU_CCS_KEY= +# export DANBOORU_CLOUDFLARE_KEY= +# export DANBOORU_CLOUDFLARE_EMAIL= +# export DANBOORU_CLOUDFLARE_ZONE= \ No newline at end of file diff --git a/config/danbooru_default_config.rb b/config/danbooru_default_config.rb index d85e5c5c8..71d9b1a2b 100644 --- a/config/danbooru_default_config.rb +++ b/config/danbooru_default_config.rb @@ -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