about summary refs log tree commit diff
path: root/config/initializers/ostatus.rb
blob: 056d30f49f6b5782c9f57d41387ae27124093243 (plain) (blame)
1
2
3
4
5
6
7
8
9
Rails.application.configure do
  config.x.local_domain = ENV['LOCAL_DOMAIN'] || 'localhost'
  config.x.hub_url      = ENV['HUB_URL']      || 'https://pubsubhubbub.superfeedr.com'
  config.x.use_https    = ENV['LOCAL_HTTPS'] == 'true'

  config.action_mailer.default_url_options = { host: config.x.local_domain, protocol: config.x.use_https ? 'https://' : 'http://' }

  config.action_cable.allowed_request_origins = ["http#{config.x.use_https ? 's' : ''}://#{config.x.local_domain}"]
end