Merge pull request #9163 from demarches-simplifiees/sentry_proxy
Technique: fait passer explicitement sentry par le proxy s'il existe
This commit is contained in:
commit
ded0a41975
1 changed files with 4 additions and 0 deletions
|
@ -13,6 +13,10 @@ end
|
|||
Sentry.init do |config|
|
||||
secrets = Rails.application.secrets.sentry
|
||||
|
||||
if ENV['http_proxy'].present?
|
||||
config.transport.proxy = ENV['http_proxy']
|
||||
end
|
||||
|
||||
config.dsn = secrets[:enabled] ? secrets[:rails_client_key] : nil
|
||||
config.send_default_pii = false
|
||||
config.release = SentryRelease.current
|
||||
|
|
Loading…
Reference in a new issue