mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-08-17 04:32:15 +01:00
Fix force https for some reverse proxies
This commit is contained in:
@@ -93,7 +93,7 @@ class AppServiceProvider extends ServiceProvider
|
|||||||
if (config('app.force_https', false)) {
|
if (config('app.force_https', false)) {
|
||||||
URL::forceScheme('https');
|
URL::forceScheme('https');
|
||||||
request()->server->set('HTTPS', 'on');
|
request()->server->set('HTTPS', 'on');
|
||||||
request()->server->set('X-Forward-Proto', 'https');
|
request()->headers->set('X-Forwarded-Proto', 'https');
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->app->scoped(PermissionStore::class, function (Application $app): PermissionStore {
|
$this->app->scoped(PermissionStore::class, function (Application $app): PermissionStore {
|
||||||
|
|||||||
Reference in New Issue
Block a user