baseurl for docs

This commit is contained in:
Andras Bacsai 2023-09-28 11:01:00 +02:00
parent b046a3e9f7
commit 4c1067cf36
3 changed files with 9 additions and 6 deletions

View File

@ -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()
{

View File

@ -1,5 +1,9 @@
<?php
return [
'docs' => [
'base_url' => 'https://coolify.io/docs',
'contact' => 'https://coolify.io/docs/contact',
],
'ssh' => [
'connection_timeout' => 10,
'server_interval' => 20,

View File

@ -15,14 +15,13 @@
@if (is_transactional_emails_active())
<form action="/forgot-password" method="POST" class="flex flex-col gap-2">
@csrf
<x-forms.input required type="email" name="email"
label="{{ __('input.email') }}" autofocus />
<x-forms.input required type="email" name="email" label="{{ __('input.email') }}" autofocus />
<x-forms.button type="submit">{{ __('auth.forgot_password_send_email') }}</x-forms.button>
</form>
@else
<div>Transactional emails are not active on this instance.</div>
<div>See how to set it in our <a class="text-white" target="_blank"
href="https://docs.coollabs.io/coolify">docs</a>, or how to
href="{{ config('constants.docs.base_url') }}">docs</a>, or how to
manually reset password.
</div>
@endif