chore(core): add coolify config options (#8578)
Some checks are pending
Tests / Validate composer.json (push) Waiting to run
Tests / Composer Audit (push) Blocked by required conditions
Tests / Bun Audit (push) Blocked by required conditions
Tests / Tests (push) Blocked by required conditions

This commit is contained in:
🏔️ Peak 2026-02-23 23:24:57 +01:00 committed by GitHub
commit f056cb7b99
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 50 additions and 6 deletions

View file

@ -62,9 +62,11 @@ All notable changes to this project will be documented in this file.
### Refactored
- Completely refactor all database migrations for a cleaner, more consistent and stable database schema
- Completely refactor all database models
- All database migrations for a cleaner, more consistent and stable database schema
- All database models for improved maintainability
- Replace hardcoded queue strings with a `ProcessingQueue` enum
- `config/constants.php` to `config/coolify.php` for all Coolify-specific settings
- Environment variable naming to be shorter and more consistent
### Maintenance

View file

@ -55,6 +55,21 @@ return [
'url' => env('APP_URL', 'http://localhost'),
/*
|--------------------------------------------------------------------------
| Coolify Application Options
|--------------------------------------------------------------------------
|
| These are custom configuration options specific to Coolify. They allow
| you to configure the application port and whether HTTPS should be
| forced for all requests to the application.
|
*/
'port' => env('APP_PORT', 8000),
'force_https' => env('APP_FORCE_HTTPS', false),
/*
|--------------------------------------------------------------------------
| Application Timezone

27
config/coolify.php Normal file
View file

@ -0,0 +1,27 @@
<?php
declare(strict_types=1);
return [
'version' => '5.0.0-alpha.1',
'helper_version' => '2.0.0',
'self_hosted' => env('SELF_HOSTED', true),
'autoupdate' => env('AUTOUPDATE_ENABLED', false),
'cdn_url' => env('CDN_URL', 'https://cdn.coollabs.io/v5.x'),
'migrations' => [
'enabled' => env('MIGRATIONS_ENABLED', true),
],
'seeders' => [
'enabled' => env('SEEDERS_ENABLED', true),
],
'scheduler' => [
'enabled' => env('SCHEDULER_ENABLED', true),
],
'horizon' => [
'enabled' => env('HORIZON_ENABLED', true),
],
];

View file

@ -192,7 +192,7 @@ return [
*/
'defaults' => [
...((bool) env('IS_WORKER_SERVER', false) ? [] : [
...((bool) env('WORKER_SERVER', false) ? [] : [
'jobs' => [
'connection' => 'redis',
'queue' => ['high', 'default'],
@ -220,7 +220,7 @@ return [
'workers-name' => 'deployments',
],
]),
...((bool) env('IS_WORKER_SERVER', false) ? [
...((bool) env('WORKER_SERVER', false) ? [
'worker-jobs' => [
'connection' => 'redis',
'queue' => ['worker-high', 'worker-default'],
@ -252,7 +252,7 @@ return [
'environments' => [
'*' => [
...((bool) env('IS_WORKER_SERVER', false) ? [] : [
...((bool) env('WORKER_SERVER', false) ? [] : [
'jobs' => [
'minProcesses' => env('HORIZON_JOBS_MIN_PROCESSES', 1),
'maxProcesses' => env('HORIZON_JOBS_MAX_PROCESSES', 4),
@ -266,7 +266,7 @@ return [
'balanceCooldown' => env('HORIZON_DEPLOYMENTS_BALANCE_COOLDOWN', 2),
],
]),
...((bool) env('IS_WORKER_SERVER', false) ? [
...((bool) env('WORKER_SERVER', false) ? [
'worker-jobs' => [
'minProcesses' => env('HORIZON_JOBS_MIN_PROCESSES', 1),
'maxProcesses' => env('HORIZON_JOBS_MAX_PROCESSES', 6),