mirror of
https://github.com/internetee/registry.git
synced 2025-06-08 13:44:47 +02:00
22 lines
548 B
Ruby
22 lines
548 B
Ruby
module Patches
|
|
module Airbrake
|
|
module SyncSender
|
|
def build_https(uri)
|
|
super.tap do |req|
|
|
req.verify_mode = OpenSSL::SSL::VERIFY_NONE
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|
|
|
|
Airbrake::SyncSender.prepend(::Patches::Airbrake::SyncSender)
|
|
|
|
Airbrake.configure do |config|
|
|
config.host = ENV['airbrake_host']
|
|
config.project_id = ENV['airbrake_project_id']
|
|
config.project_key = ENV['airbrake_project_key']
|
|
|
|
config.environment = ENV['airbrake_env'] || Rails.env
|
|
config.ignore_environments = %w(development test)
|
|
end
|