mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-08-16 20:22:15 +01:00
Fix force https for some reverse proxies, Add url and path to debug endpoint
This commit is contained in:
@@ -48,6 +48,8 @@ class HealthCheckController extends Controller
|
|||||||
return response()
|
return response()
|
||||||
->json([
|
->json([
|
||||||
'ip_address' => $ipAddress,
|
'ip_address' => $ipAddress,
|
||||||
|
'url' => $request->url(),
|
||||||
|
'path' => $request->path(),
|
||||||
'hostname' => $hostname,
|
'hostname' => $hostname,
|
||||||
'timestamp' => Carbon::now()->timestamp,
|
'timestamp' => Carbon::now()->timestamp,
|
||||||
'date_time_utc' => Carbon::now('UTC')->toDateTimeString(),
|
'date_time_utc' => Carbon::now('UTC')->toDateTimeString(),
|
||||||
|
|||||||
@@ -93,6 +93,7 @@ class AppServiceProvider extends ServiceProvider
|
|||||||
if (config('app.force_https', false)) {
|
if (config('app.force_https', false)) {
|
||||||
URL::forceScheme('https');
|
URL::forceScheme('https');
|
||||||
request()->server->set('HTTPS', 'on');
|
request()->server->set('HTTPS', 'on');
|
||||||
|
request()->server->set('X-Forward-Proto', 'https');
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->app->scoped(PermissionStore::class, function (Application $app): PermissionStore {
|
$this->app->scoped(PermissionStore::class, function (Application $app): PermissionStore {
|
||||||
|
|||||||
Reference in New Issue
Block a user