Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

use one constants file

peaklabs-dev1c5ddab30d47
diff --git a/app/Actions/Server/CleanupDocker.php b/app/Actions/Server/CleanupDocker.php
index dc6ac12bff..1b8e6c9a6e 100644
--- a/app/Actions/Server/CleanupDocker.php
+++ b/app/Actions/Server/CleanupDocker.php
@@ -13,7 +13,7 @@ class CleanupDocker
{
$settings = instanceSettings();
$helperImageVersion = data_get($settings, 'helper_version');
- $helperImage = config('coolify.helper_image');
+ $helperImage = config('constants.coolify.helper_image');
$helperImageWithVersion = "$helperImage:$helperImageVersion";
$commands = [
diff --git a/app/Actions/Server/StartLogDrain.php b/app/Actions/Server/StartLogDrain.php
index 0e8036cd96..1997b58d61 100644
--- a/app/Actions/Server/StartLogDrain.php
+++ b/app/Actions/Server/StartLogDrain.php
@@ -169,7 +169,7 @@ Files:
');
$license_key = $server->settings->logdrain_newrelic_license_key;
$base_uri = $server->settings->logdrain_newrelic_base_uri;
- $base_path = config('coolify.base_config_path');
+ $base_path = config('constants.coolify.base_config_path');
$config_path = $base_path.'/log-drains';
$fluent_bit_config = $config_path.'/fluent-bit.conf';
diff --git a/app/Console/Commands/Horizon.php b/app/Console/Commands/Horizon.php
index 65a142d6e0..8ae165c59e 100644
--- a/app/Console/Commands/Horizon.php
+++ b/app/Console/Commands/Horizon.php
@@ -12,7 +12,7 @@ class Horizon extends Command
public function handle()
{
- if (config('coolify.is_horizon_enabled')) {
+ if (config('constants.horizon.is_horizon_enabled')) {
$this->info('Horizon is enabled. Starting.');
$this->call('horizon');
exit(0);
diff --git a/app/Console/Commands/Scheduler.php b/app/Console/Commands/Scheduler.php
index 304cb357da..9b6ca53241 100644
--- a/app/Console/Commands/Scheduler.php
+++ b/app/Console/Commands/Scheduler.php
@@ -12,7 +12,7 @@ class Scheduler extends Command
public function handle()
{
- if (config('coolify.is_scheduler_enabled')) {
+ if (config('constants.horizon.is_scheduler_enabled')) {
$this->info('Scheduler is enabled. Starting.');
$this->call('schedule:work');
exit(0);
diff --git a/app/Helpers/SshMultiplexingHelper.php b/app/Helpers/SshMultiplexingHelper.php
index 1a21467990..0e840c3cea 100644
--- a/app/Helpers/SshMultiplexingHelper.php
+++ b/app/Helpers/SshMultiplexingHelper.php
@@ -151,7 +151,7 @@ class SshMultiplexingHelper
private static function isMultiplexingEnabled(): bool
{
- return config('constants.ssh.mux_enabled') && ! config('coolify.is_windows_docker_desktop');
+ return config('constants.ssh.mux_enabled') && ! config('constants.coolify.is_windows_docker_desktop');
}
private static function validateSshKey(string $sshKeyLocation): void
diff --git a/app/Http/Controllers/Api/OtherController.php b/app/Http/Controllers/Api/OtherController.php
index 062cc04e7a..b35c721167 100644
--- a/app/Http/Controllers/Api/OtherController.php
+++ b/app/Http/Controllers/Api/OtherController.php
@@ -147,7 +147,7 @@ class OtherController extends Controller
public function feedback(Request $request)
{
$content = $request->input('content');
- $webhook_url = config('coolify.feedback_discord_webhook');
+ $webhook_url = config('constants.webhooks.feedback_discord_webhook');
if ($webhook_url) {
Http::post($webhook_url, [
'content' => $content,
diff --git a/app/Jobs/ApplicationDeploymentJob.php b/app/Jobs/ApplicationDeploymentJob.php
index 27f77f7a1a..cd89f55f37 100644
--- a/app/Jobs/ApplicationDeploymentJob.php
+++ b/app/Jobs/ApplicationDeploymentJob.php
@@ -1323,7 +1323,7 @@ class ApplicationDeploymentJob implements ShouldBeEncrypted, ShouldQueue
private function prepare_builder_image()
{
$settings = instanceSettings();
- $helperImage = config('coolify.helper_image');
+ $helperImage = config('constants.coolify.helper_image');
$helperImage = "{$helperImage}:{$settings->helper_version}";
// Get user home directory
$this->serverUserHomeDir = instant_remote_process(['echo $HOME'], $this->server);
diff --git a/app/Jobs/DatabaseBackupJob.php b/app/Jobs/DatabaseBackupJob.php
index fcfe2fe3d0..94f1858828 100644
--- a/app/Jobs/DatabaseBackupJob.php
+++ b/app/Jobs/DatabaseBackupJob.php
@@ -524,7 +524,7 @@ class DatabaseBackupJob implements ShouldBeEncrypted, ShouldQueue
private function getFullImageName(): string
{
$settings = instanceSettings();
- $helperImage = config('coolify.helper_image');
+ $helperImage = config('constants.coolify.helper_image');
$latestVersion = $settings->helper_version;
return "{$helperImage}:{$latestVersion}";
diff --git a/app/Jobs/PullHelperImageJob.php b/app/Jobs/PullHelperImageJob.php
index a92e44c6b9..cfc0c5a941 100644
--- a/app/Jobs/PullHelperImageJob.php
+++ b/app/Jobs/PullHelperImageJob.php
@@ -20,7 +20,7 @@ class PullHelperImageJob implements ShouldBeEncrypted, ShouldQueue
public function handle(): void
{
- $helperImage = config('coolify.helper_image');
+ $helperImage = config('constants.coolify.helper_image');
$latest_version = instanceSettings()->helper_version;
instant_remote_process(["docker pull -q {$helperImage}:{$latest_version}"], $this->server, false);
}
diff --git a/app/Livewire/Waitlist/Index.php b/app/Livewire/Waitlist/Index.php
index 4224154495..0524b495c1 100644
--- a/app/Livewire/Waitlist/Index.php
+++ b/app/Livewire/Waitlist/Index.php
@@ -27,7 +27,7 @@ class Index extends Component
public function mount()
{
- if (config('coolify.waitlist') == false) {
+ if (config('constants.waitlist.enabled') == false) {
return redirect()->route('register');
}
$this->waitingInLine = Waitlist::whereVerified(true)->count();
diff --git a/app/Models/Server.php b/app/Models/Server.php
index 64192c71f7..515e5b9c71 100644
--- a/app/Models/Server.php
+++ b/app/Models/Server.php
@@ -462,7 +462,7 @@ $schema://$host {
public function proxyPath()
{
- $base_path = config('coolify.base_config_path');
+ $base_path = config('constants.coolify.base_config_path');
$proxyType = $this->proxyType();
$proxy_path = "$base_path/proxy";
// TODO: should use /traefik for already exisiting configurations?
diff --git a/app/Models/Service.php b/app/Models/Service.php
index 0c9e081a1e..6d3d2024b0 100644
--- a/app/Models/Service.php
+++ b/app/Models/Service.php
@@ -1171,7 +1171,7 @@ class Service extends BaseModel
$services = get_service_templates();
$service = data_get($services, str($this->name)->beforeLast('-')->value, []);
- return data_get($service, 'documentation', config('constants.docs.base_url'));
+ return data_get($service, 'documentation', config('constants.urls.docs'));
}
public function applications()
diff --git a/app/Models/Team.php b/app/Models/Team.php
index 8996b745c6..e21aa3a25c 100644
--- a/app/Models/Team.php
+++ b/app/Models/Team.php
@@ -172,7 +172,7 @@ class Team extends Model implements SendsDiscord, SendsEmail
{
return Attribute::make(
get: function () {
- if (config('coolify.self_hosted') || $this->id === 0) {
+ if (config('constants.coolify.self_hosted') || $this->id === 0) {
$subscription = 'self-hosted';
} else {
$subscription = data_get($this, 'subscription');
diff --git a/app/Providers/FortifyServiceProvider.php b/app/Providers/FortifyServiceProvider.php
index e8784bab3c..bbbf483454 100644
--- a/app/Providers/FortifyServiceProvider.php
+++ b/app/Providers/FortifyServiceProvider.php
@@ -50,7 +50,7 @@ class FortifyServiceProvider extends ServiceProvider
if (! $settings->is_registration_enabled) {
return redirect()->route('login');
}
- if (config('coolify.waitlist')) {
+ if (config('constants.waitlist.enabled')) {
return redirect()->route('waitlist.index');
} else {
return view('auth.register', [
diff --git a/bootstrap/helpers/shared.php b/bootstrap/helpers/shared.php
index 6e52dcde97..47fd21df7c 100644
--- a/bootstrap/helpers/shared.php
+++ b/bootstrap/helpers/shared.php
@@ -359,7 +359,7 @@ function isDev(): bool
function isCloud(): bool
{
- return ! config('coolify.self_hosted');
+ return ! config('constants.coolify.self_hosted');
}
function translate_cron_expression($expression_to_validate): string
diff --git a/database/seeders/ProductionSeeder.php b/database/seeders/ProductionSeeder.php
index 3e820a1629..8144a8b1a7 100644
--- a/database/seeders/ProductionSeeder.php
+++ b/database/seeders/ProductionSeeder.php
@@ -100,7 +100,7 @@ class ProductionSeeder extends Seeder
}
}
- if (! isCloud() && config('coolify.is_windows_docker_desktop') == false) {
+ if (! isCloud() && config('constants.coolify.is_windows_docker_desktop') == false) {
$coolify_key_name = '@host.docker.internal';
$ssh_keys_directory = Storage::disk('ssh-keys')->files();
$coolify_key = collect($ssh_keys_directory)->firstWhere(fn ($item) => str($item)->contains($coolify_key_name));
@@ -127,7 +127,7 @@ class ProductionSeeder extends Seeder
}
}
}
- if (config('coolify.is_windows_docker_desktop')) {
+ if (config('constants.coolify.is_windows_docker_desktop')) {
PrivateKey::updateOrCreate(
[
'id' => 0,
diff --git a/resources/views/auth/forgot-password.blade.php b/resources/views/auth/forgot-password.blade.php
index f66b460beb..00cf95a449 100644
--- a/resources/views/auth/forgot-password.blade.php
+++ b/resources/views/auth/forgot-password.blade.php
@@ -18,7 +18,7 @@
@else
<div>Transactional emails are not active on this instance.</div>
<div>See how to set it in our <a class="dark:text-white" target="_blank"
- href="{{ config('constants.docs.base_url') }}">docs</a>, or how to
+ href="{{ config('constants.urls.docs') }}">docs</a>, or how to
manually reset password.
</div>
@endif
diff --git a/resources/views/components/pricing-plans.blade.php b/resources/views/components/pricing-plans.blade.php
index 873ecfc473..ce49eae02c 100644
--- a/resources/views/components/pricing-plans.blade.php
+++ b/resources/views/components/pricing-plans.blade.php
@@ -262,7 +262,7 @@
your self-hosted instance?
<x-forms.button>
<a class="font-bold dark:text-white hover:no-underline"
- href="{{ config('coolify.contact') }}">Contact
+ href="{{ config('constants.urls.contact') }}">Contact
Us</a>
</x-forms.button>
</div>
diff --git a/resources/views/errors/400.blade.php b/resources/views/errors/400.blade.php
index 72bf847221..2276f5a626 100644
--- a/resources/views/errors/400.blade.php
+++ b/resources/views/errors/400.blade.php
@@ -14,7 +14,7 @@
<a href="/">
<x-forms.button>Go back home</x-forms.button>
</a>
- <a target="_blank" class="text-xs" href="{{ config('coolify.contact') }}">Contact
+ <a target="_blank" class="text-xs" href="{{ config('constants.urls.contact') }}">Contact
support
<x-external-link />
</a>
diff --git a/resources/views/errors/401.blade.php b/resources/views/errors/401.blade.php
index aae21024b1..e0a44aed84 100644
--- a/resources/views/errors/401.blade.php
+++ b/resources/views/errors/401.blade.php
@@ -9,7 +9,7 @@
<a href="/">
<x-forms.button>Go back home</x-forms.button>
</a>
- <a target="_blank" class="text-xs" href="{{ config('coolify.contact') }}">Contact
+ <a target="_blank" class="text-xs" href="{{ config('constants.urls.contact') }}">Contact
support
<x-external-link />
</a>
diff --git a/resources/views/errors/402.blade.php b/resources/views/errors/402.blade.php
index 5c25e020bd..9758dec2d7 100644
--- a/resources/views/errors/402.blade.php
+++ b/resources/views/errors/402.blade.php
@@ -8,7 +8,7 @@
<a href="/">
<x-forms.button>Go back home</x-forms.button>
</a>
- <a target="_blank" class="text-xs" href="{{ config('coolify.contact') }}">Contact
+ <a target="_blank" class="text-xs" href="{{ config('constants.urls.contact') }}">Contact
support
<x-external-link />
</a>
diff --git a/resources/views/errors/403.blade.php b/resources/views/errors/403.blade.php
index ec274e0003..f54a2866a0 100644
--- a/resources/views/errors/403.blade.php
+++ b/resources/views/errors/403.blade.php
@@ -9,7 +9,7 @@
<a href="/">
<x-forms.button>Go back home</x-forms.button>
</a>
- <a target="_blank" class="text-xs" href="{{ config('coolify.contact') }}">Contact
+ <a target="_blank" class="text-xs" href="{{ config('constants.urls.contact') }}">Contact
support
<x-external-link />
</a>
diff --git a/resources/views/errors/404.blade.php b/resources/views/errors/404.blade.php
index 9104e1c710..3b84bafd89 100644
--- a/resources/views/errors/404.blade.php
+++ b/resources/views/errors/404.blade.php
@@ -10,7 +10,7 @@
<a href="/">
<x-forms.button>Go back home</x-forms.button>
</a>
- <a target="_blank" class="text-xs" href="{{ config('coolify.contact') }}">Contact
+ <a target="_blank" class="text-xs" href="{{ config('constants.urls.contact') }}">Contact
support
<x-external-link />
</a>
diff --git a/resources/views/errors/419.blade.php b/resources/views/errors/419.blade.php
index e24cee60d6..723ba9f557 100644
--- a/resources/views/errors/419.blade.php
+++ b/resources/views/errors/419.blade.php
@@ -10,7 +10,7 @@
<a href="/">
<x-forms.button>Go back home</x-forms.button>
</a>
- <a target="_blank" class="text-xs" href="{{ config('coolify.contact') }}">Contact
+ <a target="_blank" class="text-xs" href="{{ config('constants.urls.contact') }}">Contact
support
<x-external-link />
</a>
diff --git a/resources/views/errors/429.blade.php b/resources/views/errors/429.blade.php
index 13e04be6be..4432443515 100644
--- a/resources/views/errors/429.blade.php
+++ b/resources/views/errors/429.blade.php
@@ -10,7 +10,7 @@
<a href="/">
<x-forms.button>Go back home</x-forms.button>
</a>
- <a target="_blank" class="text-xs" href="{{ config('coolify.contact') }}">Contact
+ <a target="_blank" class="text-xs" href="{{ config('constants.urls.contact') }}">Contact
support
<x-external-link />
</a>
diff --git a/resources/views/errors/500.blade.php b/resources/views/errors/500.blade.php
index f9de400db2..9e556cbdfa 100644
--- a/resources/views/errors/500.blade.php
+++ b/resources/views/errors/500.blade.php
@@ -13,7 +13,7 @@
<a href="/">
<x-forms.button>Go back home</x-forms.button>
</a>
- <a target="_blank" class="text-xs" href="{{ config('coolify.contact') }}">Contact
+ <a target="_blank" class="text-xs" href="{{ config('constants.urls.contact') }}">Contact
support
<x-external-link />
</a>
diff --git a/resources/views/errors/503.blade.php b/resources/views/errors/503.blade.php
index e5ad5fb086..668ea5e3a6 100644
--- a/resources/views/errors/503.blade.php
+++ b/resources/views/errors/503.blade.php
@@ -7,7 +7,7 @@
patience.
</p>
<div class="flex items-center mt-10 gap-x-6">
- <a target="_blank" class="text-xs" href="{{ config('coolify.contact') }}">Contact
+ <a target="_blank" class="text-xs" href="{{ config('constants.urls.contact') }}">Contact
support
<x-external-link />
</a>
diff --git a/resources/views/livewire/source/github/change.blade.php b/resources/views/livewire/source/github/change.blade.php
index 25694693f7..5e576fa850 100644
--- a/resources/views/livewire/source/github/change.blade.php
+++ b/resources/views/livewire/source/github/change.blade.php
@@ -254,7 +254,7 @@
const name = @js($name);
const isDev = @js(config('app.env')) ===
'local';
- const devWebhook = @js(config('coolify.dev_webhook'));
+ const devWebhook = @js(config('constants.webhooks.dev_webhook'));
if (isDev && devWebhook) {
baseUrl = devWebhook;
}
diff --git a/resources/views/livewire/subscription/actions.blade.php b/resources/views/livewire/subscription/actions.blade.php
index 00c6d4b016..e54cb0bd4e 100644
--- a/resources/views/livewire/subscription/actions.blade.php
+++ b/resources/views/livewire/subscription/actions.blade.php
@@ -45,7 +45,7 @@
</div>
</div>
<div class="pt-4">
- If you have any problems, please <a class="underline dark:text-white" href="{{ config('coolify.contact') }}"
+ If you have any problems, please <a class="underline dark:text-white" href="{{ config('constants.urls.contact') }}"
target="_blank">contact us.</a>
</div>
@endif