Adding configurable e-mail blacklist
This commit is contained in:
parent
41b4be699f
commit
b362de2232
6 changed files with 31 additions and 1 deletions
5
config/initializers/blacklists.rb
Normal file
5
config/initializers/blacklists.rb
Normal 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
|
|
@ -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' }
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
if ENV['S3_ENABLED'] == 'true'
|
||||
Aws.eager_autoload!(services: %w(S3))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue