allow forcing https for reverse proxy use

This commit is contained in:
Kode 2018-09-30 11:45:08 +01:00
parent 988364cb7c
commit a2f20fc18f
2 changed files with 8 additions and 0 deletions

2
.env
View file

@ -29,3 +29,5 @@ PUSHER_APP_ID=
PUSHER_APP_KEY=
PUSHER_APP_SECRET=
PUSHER_APP_CLUSTER=mt1
FORCE_HTTPS=true

View file

@ -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');
}
}
/**