Skip to content

Commit

Permalink
allow forcing https for reverse proxy use
Browse files Browse the repository at this point in the history
  • Loading branch information
KodeStar committed Sep 30, 2018
1 parent 988364c commit a2f20fc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,5 @@ PUSHER_APP_ID=
PUSHER_APP_KEY=
PUSHER_APP_SECRET=
PUSHER_APP_CLUSTER=mt1

FORCE_HTTPS=true
6 changes: 6 additions & 0 deletions app/Providers/AppServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,12 @@ public function boot()
}
view()->share('alt_bg', $alt_bg);

var_dump(env('FORCE_HTTPS'));

if (env('FORCE_HTTPS') === true) {
\URL::forceScheme('https');
}

}

/**
Expand Down

0 comments on commit a2f20fc

Please sign in to comment.