forked from mirror/pixelfed
Merge pull request #3710 from thisislawatts/fix/opt-out-of-forcing-https
fix: add opt of forceScheme(https)
This commit is contained in:
commit
f776c79284
1 changed files with 3 additions and 1 deletions
|
@ -40,7 +40,9 @@ class AppServiceProvider extends ServiceProvider
|
||||||
*/
|
*/
|
||||||
public function boot()
|
public function boot()
|
||||||
{
|
{
|
||||||
|
if (preg_match("/^https/", env('APP_URL')) || env('APP_ENV') === 'production') {
|
||||||
URL::forceScheme('https');
|
URL::forceScheme('https');
|
||||||
|
}
|
||||||
Schema::defaultStringLength(191);
|
Schema::defaultStringLength(191);
|
||||||
Paginator::useBootstrap();
|
Paginator::useBootstrap();
|
||||||
Avatar::observe(AvatarObserver::class);
|
Avatar::observe(AvatarObserver::class);
|
||||||
|
|
Loading…
Reference in a new issue