Download the PHP package naugrim/laravel-sentry-tunnel without Composer
On this page you can find all versions of the php package naugrim/laravel-sentry-tunnel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download naugrim/laravel-sentry-tunnel
More information about naugrim/laravel-sentry-tunnel
Files in naugrim/laravel-sentry-tunnel
Package laravel-sentry-tunnel
Short Description Provides an endpoint to use the `tunnel`-parameter of the Sentry SDK
License MIT
Informations about the package laravel-sentry-tunnel
Laravel Sentry Tunnel
This package provides a URL for use with the tunnel
-option of the Sentry SDK.
Installation
The package uses Laravel's auto-discovery.
Configuration
You can optionally publish the configuration files:
You must place at least one allowed host in your .env
file:
NOTE: This essentially creates a reverse proxy to the SENTRY_TUNNEL_ALLOWED_HOSTS
. As the Sentry DSN is not kept secret, this enables everyone to send messages to these hosts that seem to originate from your server.
Therefore, the default middleware list for the tunnel URL includes web
and auth
(so that only authenticated users can use the endpoint).
As you currently cannot pass a dynamic X-XSRF-TOKEN
header in Sentry's transportOptions
you either have to implement your own transport or place the tunnel URL in the exclude-list in the VerifyCsrfToken
middleware.
If you want to change this behavior, provide a custom implementation of \Naugrim\LaravelSentryTunnel\Contracts\MiddlewareList
via the container:
Then add it to the container in your AppServiceProvider
:
Optionally you can restrict the project IDs that are allowed to use this endpoint. The default behavior is to allow all projects.
You can change the URL of the tunnel if required. The default value is /sentry/tunnel
Usage
Consult Sentry's documentation.
All versions of laravel-sentry-tunnel with dependencies
illuminate/support Version ^8.0|^9.0|^10.0|^11.0
illuminate/routing Version ^8.0|^9.0|^10.0|^11.0
illuminate/http Version ^8.0|^9.0|^10.0|^11.0