asd?
This commit is contained in:
@@ -12,7 +12,7 @@ class TrustProxies extends Middleware
|
||||
*
|
||||
* @var array<int, string>|string|null
|
||||
*/
|
||||
protected $proxies;
|
||||
protected $proxies = '*';
|
||||
|
||||
/**
|
||||
* The headers that should be used to detect proxies.
|
||||
@@ -20,7 +20,7 @@ class TrustProxies extends Middleware
|
||||
* @var int
|
||||
*/
|
||||
protected $headers =
|
||||
Request::HEADER_X_FORWARDED_FOR |
|
||||
Request::HEADER_X_FORWARDED_FOR |
|
||||
Request::HEADER_X_FORWARDED_HOST |
|
||||
Request::HEADER_X_FORWARDED_PORT |
|
||||
Request::HEADER_X_FORWARDED_PROTO |
|
||||
|
||||
@@ -24,15 +24,15 @@ class AppServiceProvider extends ServiceProvider
|
||||
*/
|
||||
public function boot(): void
|
||||
{
|
||||
if ($this->app->environment('production')) {
|
||||
try {
|
||||
$settings = InstanceSettings::first();
|
||||
if (Str::startsWith($settings->fqdn, 'https')) {
|
||||
URL::forceScheme('https');
|
||||
}
|
||||
} catch (\Exception $e) {
|
||||
// do nothing
|
||||
}
|
||||
}
|
||||
// if ($this->app->environment('production')) {
|
||||
// try {
|
||||
// $settings = InstanceSettings::first();
|
||||
// if (Str::startsWith($settings->fqdn, 'https')) {
|
||||
// URL::forceScheme('https');
|
||||
// }
|
||||
// } catch (\Exception $e) {
|
||||
// // do nothing
|
||||
// }
|
||||
// }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user