From 6d8dba912f81c0e7bc039c24937623bcc4c0a3c8 Mon Sep 17 00:00:00 2001 From: Manuel Schmid Date: Wed, 9 Mar 2022 22:17:22 +0100 Subject: [PATCH] refactor: adjust config settings for grafana --- config/php.env.dist | 3 ++- php/src/config/spotisights.php | 5 ++++- php/src/resources/views/connect.blade.php | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/config/php.env.dist b/config/php.env.dist index 0f8806a..94fd742 100644 --- a/config/php.env.dist +++ b/config/php.env.dist @@ -2,7 +2,7 @@ APP_NAME=spotisights APP_ENV=local APP_KEY=base64:N/2tPIH4LosPts/ulPSHwPkvrMKa5Ux5nZ83eT2JeBY= APP_DEBUG=true -APP_URL=https://127.0.0.1:8080 +APP_URL=http://127.0.0.1:8080 LOG_CHANNEL=stack LOG_DEPRECATIONS_CHANNEL=null @@ -43,6 +43,7 @@ SPOTIFY_CRAWL_BULK_LIMIT=50 SPOTIFY_CACHE_TTL=2592000 # Grafana redirect (leave empty for no recirect after login) +GRAFANA_URL=http://127.0.0.1:3000 GRAFANA_DASHBOARD_URL=http://127.0.0.1:3000/d/spotisights/current-user # Services diff --git a/php/src/config/spotisights.php b/php/src/config/spotisights.php index be2e7ab..2268a36 100644 --- a/php/src/config/spotisights.php +++ b/php/src/config/spotisights.php @@ -20,6 +20,9 @@ 'active' => explode(',', env('ACTIVE_SERVICES', '')), ], - 'grafana_dashboard_url' => env('GRAFANA_DASHBOARD_URL') + 'grafana' => [ + 'url' => env('GRAFANA_URL'), + 'dashboard_url' => env('GRAFANA_DASHBOARD_URL') + ] ]; diff --git a/php/src/resources/views/connect.blade.php b/php/src/resources/views/connect.blade.php index 7c76a74..b01f644 100644 --- a/php/src/resources/views/connect.blade.php +++ b/php/src/resources/views/connect.blade.php @@ -58,7 +58,7 @@
@if (session('logged_in_spotify')) - Show Statistics + Show Statistics @endif