fix: force https scheme in production to resolve mixed-content browser blocking in dokploy
This commit is contained in:
@@ -35,11 +35,14 @@ class AppServiceProvider extends ServiceProvider
|
|||||||
$this->loadConfiguration();
|
$this->loadConfiguration();
|
||||||
$this->loadDomainUsernameData();
|
$this->loadDomainUsernameData();
|
||||||
|
|
||||||
// Only load application data when not in testing environment
|
|
||||||
if (! $this->app->environment('testing')) {
|
if (! $this->app->environment('testing')) {
|
||||||
$this->loadApplicationData();
|
$this->loadApplicationData();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($this->app->environment('production')) {
|
||||||
|
\Illuminate\Support\Facades\URL::forceScheme('https');
|
||||||
|
}
|
||||||
|
|
||||||
Cashier::calculateTaxes();
|
Cashier::calculateTaxes();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user