Lots of updates
This commit is contained in:
@@ -12,14 +12,14 @@ class Dsn < ApplicationRecord
|
||||
|
||||
def full_dsn_url
|
||||
# Generate a complete DSN URL like Sentry does
|
||||
# Format: https://{key}@{domain}/api/events
|
||||
# Format: https://{key}@{domain}
|
||||
domain = ENV['BAFFLE_HOST'] ||
|
||||
Rails.application.config.action_mailer.default_url_options[:host] ||
|
||||
ENV['RAILS_HOST'] ||
|
||||
'localhost:3000'
|
||||
|
||||
protocol = Rails.env.development? ? 'http' : 'https'
|
||||
"#{protocol}://#{key}@#{domain}/api/events"
|
||||
"#{protocol}://#{key}@#{domain}"
|
||||
end
|
||||
|
||||
def api_endpoint_url
|
||||
@@ -30,7 +30,7 @@ class Dsn < ApplicationRecord
|
||||
'localhost:3000'
|
||||
|
||||
protocol = Rails.env.development? ? 'http' : 'https'
|
||||
"#{protocol}://#{domain}/api/events"
|
||||
"#{protocol}://#{domain}"
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
Reference in New Issue
Block a user