sls/app/Providers/AppServiceProvider.php
kushal.saha 3aca6d90f3 feat(webrtc): implement IceCandidateProviderInterface with Metered and ConvexSol drivers
- 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
2026-08-26 12:44:41 +00:00

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
);
}
}