Commit graph

924 commits

Author SHA1 Message Date
Andras Bacsai
f060b7d3d2 refactor(shared): enhance job status check to include 'reserved' 2025-03-28 15:42:25 +01:00
Andras Bacsai
735fcaad33 refactor(shared): add logging for running deployment jobs 2025-03-28 15:30:21 +01:00
Andras Bacsai
2a08f4d653 refactor(shared): simplify deployment status check logic 2025-03-28 15:09:38 +01:00
Andras Bacsai
e891318396 refactor(configuration): centralize configuration management in ConfigurationRepository 2025-03-24 21:01:27 +01:00
Andras Bacsai
5e6c112fcc feat(github): enhance repository loading and validation in applications 2025-03-24 14:29:17 +01:00
Andras Bacsai
806d892031 refactor(application): streamline healthcheck parsing from Dockerfile 2025-03-24 11:43:10 +01:00
Andras Bacsai
009cee1bbd
Merge branch 'next' into feat-db-ssl 2025-03-17 15:15:24 +01:00
peaklabs-dev
ee93ccd8e7
fix(backups): retention settings
- If you set a low local backup retention, for example 2 backups for local backup retention and 10 backups for S3, then the S3 backups were never deleted, not even after 10 days. This was because we check the file paths based on the backup executions table, and as soon as a backup was deleted locally, the execution was removed, which meant after 10 days for s3 there where no backups older then 10 days just the 2 local backups which is just wrong. Now we only delete a backup execution if it has been removed from both locations.
- Also added a nice little UI element to see where your backup is available.
2025-03-14 15:28:12 +01:00
Andras Bacsai
2c845461c9 refactor(nginx): streamline default Nginx configuration and improve error handling
Updated the default Nginx configuration function to enhance clarity and maintainability. Removed unnecessary redirection logic and added explicit handling for 404 errors, ensuring a more robust error management strategy. This refactor simplifies the configuration while maintaining essential functionality, contributing to a cleaner and more efficient setup.
2025-03-13 20:30:22 +01:00
Andras Bacsai
e7e0cb6666
Merge pull request #5162 from notm1ke/main
feat(oauth): Add support for configuring and passing hd parameter to Google
2025-03-10 19:25:18 +01:00
Andras Bacsai
f1b98f5ce9 fix(helpers): Initialize command variable in parseCommandFromMagicEnvVariable 2025-02-28 20:28:35 +01:00
Andras Bacsai
a402c28606 fix(revert): label parsing 2025-02-28 20:25:19 +01:00
Andras Bacsai
1c21652d5d fix(core): Improve label generation and merging for applications and services 2025-02-28 12:44:20 +01:00
Andras Bacsai
dea125f679 refactor(notifications): Improve transactional email settings handling
- Replace `! $type` checks with `blank($type)` for consistency
- Modify email settings configuration to handle null/disabled states
- Ensure proper fallback and configuration of email providers
2025-02-27 12:56:37 +01:00
Andras Bacsai
e1c5ace342 fix(docker): Improve Docker compose file validation process
- Increase UUID length for better uniqueness
- Add server existence check before validation
- Implement cleanup of temporary compose file in finally block
2025-02-27 12:17:12 +01:00
Andras Bacsai
27e4882d57 feat(core): You can validate compose files with docker compose config
fix(core): labels are now accepted with both compose styles
refactor: remove lots of ray's
2025-02-27 11:29:04 +01:00
🏔️ Peak
9557957f18
Merge branch 'next' into feat-db-ssl 2025-02-19 17:57:59 +01:00
Mike M
4a0cab8be3 Added support for passing hd parameter to Google via existing tenant column in oauth_settings 2025-02-16 16:44:22 -08:00
Andras Bacsai
b53e289bcd fix(core): improve connection testing with dynamic disk configuration for s3 backups 2025-02-13 10:07:58 +01:00
🏔️ Peak
c7840bdf1b
Merge branch 'next' into feat-db-ssl 2025-02-07 23:01:46 +01:00
Andras Bacsai
186a3fc75b
Merge pull request #5038 from Vann-Dev/main
feat(api): add applications logs api
2025-02-04 13:33:30 +01:00
Andras Bacsai
8033a89dee fix(ui): simplify service templates loading logic 2025-02-04 13:30:27 +01:00
🏔️ Peak
f871c1067b
Merge branch 'next' into feat-db-ssl 2025-02-03 22:20:51 +01:00
peaklabs-dev
3cf758e2d0
fix(databases): fix database name users new uuid instead of DB one 2025-02-03 21:43:16 +01:00
Andras Bacsai
773caf7fd5 feat(core): add name to default proxy configuration 2025-02-03 21:24:01 +01:00
Andras Bacsai
8be536d3ec fix(core): increase HTTP/2 max concurrent streams to 250 (default) 2025-02-02 14:03:18 +01:00
Vann
7b60d76b77 feat: remove ansi color from log 2025-02-02 10:01:01 +00:00
Vann
e7988fc295 feat: container logs 2025-02-01 17:21:38 +00:00
Andras Bacsai
55fb4e5d20
Merge pull request #4945 from nktnet1/feat-env-coolify-resource-uuid
feat(env): added COOLIFY_RESOURCE_UUID environment variable
2025-01-28 13:46:17 +01:00
Andras Bacsai
d8877884d7
Merge pull request #4933 from nktnet1/fix-coolify-env-quotes
fix: remove quotes in COOLIFY_CONTAINER_NAME
2025-01-28 11:24:19 +01:00
Andras Bacsai
cd0320f392
Merge pull request #4938 from hederson/fix-swarm-proxy
Fix swarm proxy and detach param
2025-01-28 11:11:56 +01:00
peaklabs-dev
12c7ee2879
fix(s3): DigitalOcean storage buckets do not work 2025-01-25 23:40:40 +01:00
Khiet Tam Nguyen
a55d1996d7
feat(env): added COOLIFY_RESOURCE_UUID environment variable 2025-01-24 22:04:34 +11:00
peaklabs-dev
8b6b1b6a9d
fix(storage): Hetzner storage buckets not working
- fix: Hetzner buckets do not work for backups
- refactor: removed special handling for Hetzner as it is no longer needed
2025-01-23 18:51:24 +01:00
Hederson Boechat
071cabdc31 fix(proxy) update traefik proxy config for docker swarm 2025-01-23 11:57:34 -03:00
Khiet Tam Nguyen
c4bf91e5b4
fix: remove quotes in COOLIFY_CONTAINER_NAME 2025-01-23 13:08:31 +11:00
Andras Bacsai
c9869e13e0 refactor(workflows): replace jq with PHP script for version retrieval in workflows 2025-01-22 14:05:29 +01:00
Andras Bacsai
6a03bb369e chore(versions): update coolify versions to v4.0.0-beta.389 and add helper version retrieval script 2025-01-22 14:01:05 +01:00
Andras Bacsai
085103708c fix(core): v1 parser versions trying to access application_id, while it is resourceable_id
fix(db): remove wrongly created, empty environmentvariables
2025-01-22 10:21:51 +01:00
Andras Bacsai
8c937156c5 fix(core): compose parsing for apps 2025-01-21 20:00:05 +01:00
Andras Bacsai
8350c3e039 fix: correct service update logic in Docker Compose parser 2025-01-20 13:59:02 +01:00
Andras Bacsai
618b89f648
Merge pull request #4842 from peaklabs-dev/docker-cleanup-executions-ui
feat: Docker cleanup execution UI and some UI improvements
2025-01-16 21:42:02 +01:00
Andras Bacsai
3c83c7fd6c
Merge pull request #4754 from coollabsio/improve-git-and-service-provider
Improves: GitHub handling, AppServiceProvider and 500 error message rendering
2025-01-16 21:09:08 +01:00
🏔️ Peak
11d1a9e6fd
Merge branch 'next' into docker-cleanup-executions-ui 2025-01-16 14:41:23 +01:00
peaklabs-dev
3aca101821
fix: Redis DB should use the new resourceable columns 2025-01-16 12:51:18 +01:00
peaklabs-dev
85f38b7cb5
refactor: improve data formatting and UI
- move date and duration functions to a shared function
- remove duplicate code
- redesigned the deployment executions tab
- added start and end times for backups, scheduled tasks, deployments and docker cleanup executions
- calculated the duration for backups, scheduled tasks, deployments and Docker cleanup executions
- redesigned status badges with colors to make it easier to see your current status
- removed dependency on dayjs
- fixed calculation of execution time was sometimes incorrect
2025-01-15 18:35:20 +01:00
peaklabs-dev
e9f691bf45
fix: storage retention setting
- feat: add storage retention to local storage as well
- fix: UI input for max storage now allows exact decimals so MB input is now also possible
- fix: Database column is now decimal instead of integer
- fix: variable naming of storage check no longer overwrites $backup - renamed it to $backupExecution
2025-01-13 19:49:12 +01:00
peaklabs-dev
3347eb3a1a
fix: retention functions and folder deletion for local backups
- fix: Delete folder and parent folder if folders are empty when deleting local backups.
- fix: Do not remove executions from DB until both S3 and local backups have been deleted and successfully processed otherwise backups will never be deleted from s3.
- fix: Server ID could be null
2025-01-13 18:46:27 +01:00
peaklabs-dev
a5fadb0536
fix: function calls 2025-01-13 16:54:17 +01:00
peaklabs-dev
f0d15afbf2
chore: improve code 2025-01-13 16:43:23 +01:00
peaklabs-dev
fb01aed6d5
feat: new global s3 and local backup deletion function 2025-01-13 16:37:36 +01:00
Andras Bacsai
a396d51452
Merge branch 'next' into hotfix 2025-01-10 20:23:29 +01:00
Andras Bacsai
3a3219394d refactor: enhance ApplicationDeploymentJob and HorizonServiceProvider for improved job handling
- Removed the private property for application deployment queue ID in ApplicationDeploymentJob and utilized constructor property promotion.
- Added a tags method in ApplicationDeploymentJob to properly identify the worker running the job.
- Updated HorizonServiceProvider to handle cases where the deployment queue ID is blank, preventing potential errors during job processing.
- Cleaned up the isAnyDeploymentInprogress function by removing unnecessary whitespace.
2025-01-10 20:07:01 +01:00
Andras Bacsai
7582d7dd8b refactor: streamline job status retrieval and clean up repository interface
- Simplified the job status retrieval process by consolidating logic into a single `getJobStatus` function.
- Removed redundant checks and methods from the `CustomJobRepositoryInterface` and `CustomJobRepository`.
- Updated the `getHorizonJobStatus` method in `ApplicationDeploymentQueue` to directly utilize the new `getJobStatus` function.
- Enhanced the `isThereAJobInProgress` method to improve clarity and maintainability.
2025-01-10 19:53:13 +01:00
Andras Bacsai
db079c0c7d refactor: improve deployment status check in isAnyDeploymentInprogress function
- Updated the isAnyDeploymentInprogress function to check for running jobs based on the current hostname.
- Enhanced the logic to return true if any job status is 'unknown' and to provide a clearer output regarding the number of deployments in progress.
- Modified the cloud_upgrade.sh script to loop until the deployment status check confirms no ongoing deployments before proceeding with the upgrade.
2025-01-10 18:34:16 +01:00
Andras Bacsai
02400added fix: horizon job checker 2025-01-10 18:27:48 +01:00
Andras Bacsai
b7d18fc28c fix: getcontainer status should timeout after 30s 2025-01-10 12:04:59 +01:00
peaklabs-dev
c789ed6003
chore: remove more logging 2025-01-06 21:16:57 +01:00
peaklabs-dev
09dfbde676
chore: remove debug log, finally found it 2025-01-06 21:14:06 +01:00
peaklabs-dev
deec885fd9
fix: Expiration time claim ('exp') must be a numeric value 2025-01-06 21:08:22 +01:00
peaklabs-dev
126e5ff57a
add debug log 2025-01-06 20:56:19 +01:00
peaklabs-dev
fdb5f069fc
chore: ajust time to 50s (tests done) 2025-01-06 18:32:05 +01:00
peaklabs-dev
a29547b3ba
fix: error rendering 2025-01-06 17:49:55 +01:00
peaklabs-dev
503d2b4866
fix: error message and server time getting 2025-01-06 17:43:27 +01:00
peaklabs-dev
05113d8e06
fix: check System and GitHub time and throw and error if it is over 50s out of sync 2025-01-06 17:28:49 +01:00
peaklabs-dev
4d34d689b0 refactor: github.php
- Rename functions
- Consolidate Code
- Fix: timing issues with JWT tokens
- Clearer error handling
2025-01-06 16:58:20 +01:00
Andras Bacsai
f575d1249e Merge branch 'main' into next 2024-12-27 11:09:29 +01:00
peaklabs-dev
1f6c6140ba
fix: smtp encryption 2024-12-23 15:28:35 +01:00
Andras Bacsai
5403fa7c71 feat: add database subtype 2024-12-18 12:56:06 +01:00
Andras Bacsai
340075a684
Merge pull request #4324 from JuliensForks/main
feat: add some new labels to every container
2024-12-18 12:55:33 +01:00
Andras Bacsai
9e3467578f feat: add environment_uuid support and update API documentation
- Introduced `environment_uuid` as a required field in various API endpoints and schemas.
- Updated descriptions to clarify that either `environment_name` or `environment_uuid` must be provided.
- Modified routes and controller methods to accommodate the new UUID parameter.
- Adjusted frontend components to utilize `environment_uuid` for better consistency and clarity.
- Removed deprecated fields related to environment handling.

This change enhances the API's flexibility in identifying environments, improving overall usability.
2024-12-17 13:42:16 +01:00
Andras Bacsai
2a9d499251 feat: migrate env variables to polymorphic relationship
fix: proxy status query ui
2024-12-17 10:38:42 +01:00
🏔️ Peak
2972a29ccc
Merge branch 'next' into oauth 2024-12-16 18:24:11 +01:00
Andras Bacsai
62574941df add 'admin' to allowed paths for unsubscribed accounts 2024-12-16 13:00:29 +01:00
Zao Soula
c5f365e384 feat: add infomaniak oauth 2024-12-15 01:30:37 +01:00
Andras Bacsai
76b44e2e6a feat: add new password magic env with symbols 2024-12-12 11:06:00 +01:00
🏔️ Peak
d9aefae207
Merge branch 'next' into feature/authentik-provider 2024-12-11 15:24:26 +01:00
peaklabs-dev
d289f41ff6
chore: remove functions from shared.php
- Removed all notification functions from shared.php to make it easier to maintain and test.
2024-12-09 15:38:21 +01:00
peaklabs-dev
df6c5c55e1
feat: new shared notifications functions 2024-12-09 15:37:11 +01:00
peaklabs-dev
d9248508b4
chore: remove unused waitlist stuff 2024-12-09 12:00:54 +01:00
Julien
0d5d5537be refactor: rename coolify.environment to coolify.environmentName 2024-12-08 12:46:42 +01:00
Andras Bacsai
1184fafd3d
Merge pull request #4264 from marvinvr/main
feat: add slack notifications
2024-12-06 14:35:55 +01:00
Andras Bacsai
f82d95e908 refactor: update Traefik configuration for improved security and logging
- Removed unnecessary volume mapping for production environment.
- Added insecure API access and debug logging for development environment.
- Ensured consistent handling of Docker provider exposure settings.
- Updated certificate resolver storage path for clarity.
2024-12-06 13:07:56 +01:00
Marvin von Rappard
f7eccefda3
Merge branch 'next' into main 2024-12-06 06:29:35 +01:00
Andras Bacsai
e67a93e6a5 feat: able to deploy without cache on every commit 2024-12-05 10:46:27 +01:00
🏔️ Peak
68ccb30eab
Merge pull request #4478 from eithe/main
Support PopOS as server
2024-12-04 13:24:22 +01:00
Eirik H
029e8954c5
Support PopOS as server
PopOS is already added as supported for the main Coolify instance, but fails when adding a PopOS machine as an additional server.
2024-12-04 13:19:00 +01:00
Andras Bacsai
74311f4feb Refactor string concatenation and update function signatures for improved readability and null handling in shared helper functions 2024-12-03 15:39:24 +01:00
Andras Bacsai
319c3023dc fix 2024-12-02 22:50:03 +01:00
Andras Bacsai
58988d3686 fix: a few inputs 2024-12-02 22:50:03 +01:00
Julien
1086aea54d feat: add coolify.environment label 2024-12-02 18:38:47 +01:00
Marvin von Rappard
02a20729c7
Merge branch 'next' into main 2024-11-27 11:09:45 +01:00
Andras Bacsai
7f0094ed55 feat: add hex magic env var 2024-11-26 13:01:42 +01:00
Andras Bacsai
c70554e2d2 Refactor getVersion.php to prevent GitHub Actions failure 2024-11-26 10:53:34 +01:00
🏔️ Peak
e6ea4a0199
Merge pull request #4257 from konstchri/caddy_stripprefix_fix
Caddy stripprefix fix
2024-11-25 14:03:47 +01:00
Marvin von Rappard
a4910880e0
Merge branch 'next' into main 2024-11-25 13:44:24 +01:00
Andras Bacsai
37d4d5f98c fix: version should come from constants + fix stripe webhook error reporting 2024-11-25 11:28:08 +01:00
Marvin von Rappard
1aea60f1f0
Merge branch 'next' into main 2024-11-25 09:06:24 +01:00
Andras Bacsai
7dc65dfd79 fix: make sure important jobs/actions are running on high prio queue 2024-11-22 11:16:01 +01:00
Julien
8b30123add feat: add service/resource/project labels 2024-11-17 23:06:05 +01:00