0
0
Fork 0

Adding configurable e-mail blacklist

This commit is contained in:
Eugen Rochko 2016-12-04 19:07:02 +01:00
parent 41b4be699f
commit b362de2232
6 changed files with 31 additions and 1 deletions

View file

@ -0,0 +1,5 @@
# frozen_string_literal: true
Rails.application.configure do
config.x.email_domains_blacklist = ENV.fetch('EMAIL_DOMAIN_BLACKLIST') { 'mvrht.com' }
end

View file

@ -1,7 +1,9 @@
# frozen_string_literal: true
port = ENV.fetch('PORT') { 3000 }
host = ENV.fetch('LOCAL_DOMAIN') { "localhost:#{port}" }
https = ENV['LOCAL_HTTPS'] == 'true'
Rails.application.configure do
config.x.local_domain = host
config.x.hub_url = ENV.fetch('HUB_URL') { 'https://pubsubhubbub.superfeedr.com' }

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
if ENV['S3_ENABLED'] == 'true'
Aws.eager_autoload!(services: %w(S3))