File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change 44
55use View ;
66use Cache ;
7+ use Illuminate \Support \Str ;
78use Pterodactyl \Models \User ;
89use Pterodactyl \Models \Server ;
910use Pterodactyl \Models \Subuser ;
11+ use Illuminate \Support \Facades \URL ;
1012use Illuminate \Pagination \Paginator ;
1113use Illuminate \Support \Facades \Schema ;
1214use Illuminate \Support \ServiceProvider ;
@@ -32,6 +34,15 @@ public function boot()
3234 View::share ('appIsGit ' , $ this ->versionData ()['is_git ' ] ?? false );
3335
3436 Paginator::useBootstrap ();
37+
38+ // If the APP_URL value is set with https:// make sure we force it here. Theoretically
39+ // this should just work with the proxy logic, but there are a lot of cases where it
40+ // doesn't, and it triggers a lot of support requests, so lets just head it off here.
41+ //
42+ // @see https://github.com/pterodactyl/panel/issues/3623
43+ if (Str::startsWith (config ('app.url ' ) ?? '' , 'https:// ' )) {
44+ URL ::forceScheme ('https ' );
45+ }
3546 }
3647
3748 /**
You can’t perform that action at this time.
0 commit comments