allow forcing https for reverse proxy use
This commit is contained in:
parent
988364cb7c
commit
a2f20fc18f
2 changed files with 8 additions and 0 deletions
2
.env
2
.env
|
@ -29,3 +29,5 @@ PUSHER_APP_ID=
|
|||
PUSHER_APP_KEY=
|
||||
PUSHER_APP_SECRET=
|
||||
PUSHER_APP_CLUSTER=mt1
|
||||
|
||||
FORCE_HTTPS=true
|
|
@ -54,6 +54,12 @@ class AppServiceProvider extends ServiceProvider
|
|||
}
|
||||
view()->share('alt_bg', $alt_bg);
|
||||
|
||||
var_dump(env('FORCE_HTTPS'));
|
||||
|
||||
if (env('FORCE_HTTPS') === true) {
|
||||
\URL::forceScheme('https');
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue