Skip to content

Commit

Permalink
Ruby: add proxy config docs (#8414)
Browse files Browse the repository at this point in the history
  • Loading branch information
natikgadzhi authored Nov 7, 2023
1 parent 7c41953 commit 1a5e80f
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions src/platforms/ruby/common/configuration/options.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down

1 comment on commit 1a5e80f

@vercel
Copy link

@vercel vercel bot commented on 1a5e80f Nov 7, 2023

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

Please sign in to comment.