From 4c1067cf3642731a796acffc46930e8b326bf029 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Thu, 28 Sep 2023 11:01:00 +0200 Subject: [PATCH] baseurl for docs --- app/Models/Service.php | 2 +- config/constants.php | 8 ++++++-- resources/views/auth/forgot-password.blade.php | 5 ++--- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/app/Models/Service.php b/app/Models/Service.php index 51fc66b11..cc60a8cad 100644 --- a/app/Models/Service.php +++ b/app/Models/Service.php @@ -53,7 +53,7 @@ class Service extends BaseModel { $services = Cache::get('services', []); $service = data_get($services, Str::of($this->name)->beforeLast('-')->value, []); - return data_get($service, 'documentation', 'https://coolify.io/docs'); + return data_get($service, 'documentation', config('constants.docs.base_url')); } public function applications() { diff --git a/config/constants.php b/config/constants.php index b93ac184e..d001bc2b3 100644 --- a/config/constants.php +++ b/config/constants.php @@ -1,6 +1,10 @@ [ + 'docs' => [ + 'base_url' => 'https://coolify.io/docs', + 'contact' => 'https://coolify.io/docs/contact', + ], + 'ssh' => [ 'connection_timeout' => 10, 'server_interval' => 20, 'command_timeout' => 7200, @@ -18,7 +22,7 @@ return [ 'official' => 'https://cdn.coollabs.io/coolify/service-templates.json', ], 'limits' => [ - 'trial_period'=> 7, + 'trial_period' => 7, 'server' => [ 'zero' => 0, 'self-hosted' => 999999999999, diff --git a/resources/views/auth/forgot-password.blade.php b/resources/views/auth/forgot-password.blade.php index 04a9a5695..d52a5b4e3 100644 --- a/resources/views/auth/forgot-password.blade.php +++ b/resources/views/auth/forgot-password.blade.php @@ -15,14 +15,13 @@ @if (is_transactional_emails_active())
@csrf - + {{ __('auth.forgot_password_send_email') }} @else
Transactional emails are not active on this instance.
See how to set it in our docs, or how to + href="{{ config('constants.docs.base_url') }}">docs, or how to manually reset password.
@endif