Skip to content

prplx/go-sentry-tunnel

Repository files navigation

Go Sentry Tunnel

A simple Sentry tunnel written in Go. Serves as a proxy for tunneling Sentry browser requests into the Sentry server. Useful when requests to Sentry are blocked by browsers ad blockers. See official Sentry documentation.

Configuration

The application looks up for the next environment variables:

DSN - comma separated list of Sentry DSN's to work with. Required. ALLOW_ORIGINS - comma separated list of origins to bypass CORS browser check. Optional. Default value is *. PORT - port this app will be running on. Optional. Default value is 3001.

Running with docker

docker build -t go-sentry-tunnel .
docker run --rm -e 'DSN=https://[email protected]/project' -p 3001:3001 go-sentry-tunnel

Running without docker

git clone https://github.com/prplx/go-sentry-tunnel.git
cd go-sentry-tunnel && go mod install
DSN=https://[email protected]/project go run cmd/api/main.go

Using

Use /tunnel endpoint to proxy your requests to Sentry.

About

A Sentry tunnel written in Go

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published