ConfigController.php 1.03 KB
  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
<?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;

class ConfigController extends Controller
{
public function index(Request $request)
{
return [
'base_url' => config('app.url'),
'od_url' => config('kea.grafana.url') .
(config('kea.grafana.port') ? ':' . config('kea.grafana.port') : '')
. config('kea.grafana.od_params'),
'mltd_url' => config('kea.grafana.url') .
(config('kea.grafana.port') ? ':' . config('kea.grafana.port') : '')
. config('kea.grafana.mltd_params'),
'ceptd_url' => config('kea.kibana.url') .
(config('kea.kibana.port') ? ':' . config('kea.kibana.port') : '')
. config('kea.kibana.ceptd_params'),
];
}

public function keycloak(Request $request)
{
return [
'realm' => config('keycloak.realm'),
'url' => config('keycloak.url'),
'clientId' => config('keycloak.client_id'),
];
}
}