Blame view
api/app/Http/Controllers/ConfigController.php
1.03 KB
fa297f23d Added config fetc... |
1 2 3 4 5 6 7 8 9 10 11 |
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; class ConfigController extends Controller { public function index(Request $request) { return [ |
ff996c1b2 Changed env calls... |
12 13 14 15 16 17 18 19 20 21 |
'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'), |
fa297f23d Added config fetc... |
22 23 |
]; } |
c0c5f5114 Added keycloak fr... |
24 25 26 27 |
public function keycloak(Request $request) { return [ |
ff996c1b2 Changed env calls... |
28 29 30 |
'realm' => config('keycloak.realm'), 'url' => config('keycloak.url'), 'clientId' => config('keycloak.client_id'), |
c0c5f5114 Added keycloak fr... |
31 32 |
]; } |
fa297f23d Added config fetc... |
33 |
} |