- Add Metered and ConvexSol (CoTURN) provider drivers with response validation and caching - Add IceCandidateManager with automatic failover and structured logging - Add IceCandidateProviderInterface and DTOs conforming to RTCIceServer format
41 lines
967 B
PHP
41 lines
967 B
PHP
<?php
|
|
|
|
namespace App\Providers;
|
|
|
|
use Illuminate\Support\ServiceProvider;
|
|
|
|
use Illuminate\Support\Facades\Event;
|
|
use Illuminate\Support\Facades\URL;
|
|
use SocialiteProviders\Manager\SocialiteWasCalled;
|
|
use SocialiteProviders\Microsoft\MicrosoftExtendSocialite;
|
|
|
|
class AppServiceProvider extends ServiceProvider
|
|
{
|
|
/**
|
|
* Register any application services.
|
|
*/
|
|
public function register(): void
|
|
{
|
|
//
|
|
}
|
|
|
|
/**
|
|
* Bootstrap any application services.
|
|
*/
|
|
public function boot(): void
|
|
{
|
|
if (request()->server('HTTP_X_FORWARDED_PROTO') === 'https' || request()->isSecure()) {
|
|
URL::forceScheme('https');
|
|
|
|
if ($forwardedHost = request()->server('HTTP_X_FORWARDED_HOST')) {
|
|
URL::forceRootUrl("https://{$forwardedHost}");
|
|
}
|
|
}
|
|
|
|
Event::listen(
|
|
SocialiteWasCalled::class,
|
|
MicrosoftExtendSocialite::class
|
|
);
|
|
}
|
|
}
|