-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7c41953
commit 1a5e80f
Showing
1 changed file
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -251,6 +251,30 @@ config.trusted_proxies = ["2.2.2.2"] | |
config.transport.transport_class = MyTransportClass | ||
``` | ||
|
||
`proxy` | ||
|
||
: Setup a proxy to use to connect to Sentry. This option is respected by the default `Sentry::HTTPTransport` class. You can set `config.transport.proxy` with as a `String` containing a proxy URI, or a `URI` object, or a `Hash` containing `uri`, `user` and `password` keys. | ||
|
||
```ruby | ||
Sentry.init do |config| | ||
# ... | ||
|
||
# Provide proxy config as a String | ||
config.transport.proxy = "http://user:[email protected]:8080" | ||
|
||
# Or a URI | ||
config.transport.proxy = URI("http://user:[email protected]:8080") | ||
|
||
# Or a Hash | ||
config.transport.proxy = { | ||
uri: "http://proxyhost.net:8080", | ||
user: "user", | ||
password: "password" | ||
} | ||
end | ||
|
||
``` | ||
|
||
## Environment Variables | ||
|
||
`SENTRY_DSN` | ||
|
1a5e80f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
sentry-docs – ./
sentry-docs-git-master.sentry.dev
docs.sentry.io
sentry-docs.sentry.dev