Commit graph

433 commits

Author SHA1 Message Date
Vann
e7988fc295 feat: container logs 2025-02-01 17:21:38 +00:00
Van-Dev
b1d6167e89
feat: add application api route 2025-02-01 22:09:59 +07:00
Islam Adel
672a5d0bc5
fix: Handle pullrequest:updated for reliable preview deployments
The repo:push payload lacks the destination branch name, using push.changes.0.new.name instead. While sufficient for updates, this causes failures in preview deployments when a PR receives new commits—Coolify looks for git_branch in the applications table but finds the source branch instead.

By also processing pullrequest:updated, we ensure preview deployments remain in sync. However, this event triggers on various actions (e.g., PR title changes, reviewer updates), causing extra redeploys. Since Coolify doesn’t store commit hashes for preview deployments, handling these extra redeploys is our best workaround for Bitbucket.
2025-02-01 12:24:23 +02:00
Andras Bacsai
3bc85b1a8c fix: validate private key through API
feat: able to add base64 encoded private key, not just oneline
2025-01-20 13:59:02 +01:00
Andras Bacsai
f35f45324b fix: server proxy set correctly through the API
fix: cannto delete localhost through the API.
2025-01-20 13:59:02 +01:00
peaklabs-dev
3d4e8b9867
chore: switch up readonly lables to make more sense 2025-01-08 17:05:11 +01:00
Andras Bacsai
1fe4dd722b Revert "rector: arrrrr"
This reverts commit 16c0cd10d8.
2025-01-07 15:31:43 +01:00
Andras Bacsai
16c0cd10d8 rector: arrrrr 2025-01-07 14:52:08 +01:00
Andras Bacsai
c7a01eb270
Merge pull request #4596 from arceushui/main
fix: fix domain being override when update application
2024-12-18 11:09:31 +01:00
Andras Bacsai
41688f24e3
Merge branch 'next' into fix/api--projects-apps-fixes 2024-12-18 10:49:45 +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
Pang Jin Hui
b01056411d
fix: fix domain being override when update application 2024-12-16 16:56:33 +08:00
SierraJC
00c93aa8b0
fix: applications API writing to unavailable models
when $useBuildServer is set, $application->settings model does not yet exist. This change ensures the models exist before accessing them.
2024-12-14 12:58:11 +11:00
SierraJC
e7ffeda8e0
fix: applications API response code + schema 2024-12-14 12:54:36 +11:00
SierraJC
9e8d9e6a9e
fix: invalid API response on missing project
API was returning 500 instead of 404 due to attempting to load environments for a non-existent project
2024-12-14 12:52:47 +11:00
Andras Bacsai
4901b12279 fix: service status indicator + oauth saving 2024-12-13 12:03:10 +01:00
Andras Bacsai
458cd96ac8 fix: services env values should be sensitive 2024-12-12 13:20:13 +01:00
🏔️ Peak
fdf757c7ae
Merge branch 'next' into separate-success-and-failure-notifications 2024-12-09 18:15:41 +01:00
🏔️ Peak
c4a72fbd75
Merge branch 'main' into separate-success-and-failure-notifications 2024-12-09 18:11:29 +01:00
peaklabs-dev
b13d77377c
feat: new shared function name is_transactional_emails_enabled() 2024-12-09 15:34:24 +01:00
peaklabs-dev
c995819ed3
chore: remove unused code 2024-12-09 12:34:45 +01:00
peaklabs-dev
5515f07f14
chore: remove commented out notification 2024-12-09 12:05:18 +01:00
peaklabs-dev
d9248508b4
chore: remove unused waitlist stuff 2024-12-09 12:00:54 +01:00
Andras Bacsai
3fa7d03db7 fix: root + read:sensive could read senstive data with a middlewarew 2024-12-09 11:10:35 +01:00
Andras Bacsai
78f0ac80c1 Merge branch 'next' into feat/deployment-token 2024-12-09 09:16:59 +01:00
🏔️ Peak
6aa87116e9
Merge branch 'main' into next 2024-12-08 16:17:23 +01:00
Andras Bacsai
320dd41303 fix: api endpoint 2024-12-07 14:26:44 +01:00
Andras Bacsai
c9d47e0a67
Merge pull request #4449 from SierraJC/fix/mysql-mongo-db-api
Fix: API - MySQL & MongoDB invalid fields
2024-12-05 12:57:11 +01:00
peaklabs-dev
5f985426ab
feat: update private key nam with new slug as well 2024-12-03 15:27:20 +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
SierraJC
f279729f08
fix: incorrect MongoDB init API property 2024-12-01 10:19:15 +11:00
SierraJC
b3f968db76
fix: missing mysql_password API property 2024-12-01 10:18:36 +11:00
Andras Bacsai
40af73cb7d fix: only return server uuid on server update 2024-11-25 13:41:59 +01:00
Andras Bacsai
dce783813a
Merge pull request #4379 from SierraJC/fix/misc-server-api-fixes
Fix: `/servers` API invalid responses / OpenAPI schema
2024-11-25 13:41:28 +01:00
Andras Bacsai
37d4d5f98c fix: version should come from constants + fix stripe webhook error reporting 2024-11-25 11:28:08 +01:00
SierraJC
fead884809
fix: missing uuid parameter on server API patch 2024-11-23 13:23:13 +11:00
SierraJC
379045c835
fix: incorrect server API patch response 2024-11-23 13:23:13 +11:00
SierraJC
4a45de5646
fix: empty server API response 2024-11-23 13:23:13 +11:00
Andras Bacsai
377758edcd fix stripe webhooks 2024-11-22 14:42:10 +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
peaklabs-dev
a4f56fbd3f
Merge branch 'dep-and-remove-unused-stuff' of https://github.com/peaklabs-dev/coolify into dep-and-remove-unused-stuff 2024-11-12 15:20:05 +01:00
peaklabs-dev
1c5ddab30d
use one constants file 2024-11-12 15:18:48 +01:00
Andras Bacsai
055c613ba5 feat: add proxy type change to create/update apis 2024-11-12 14:30:05 +01:00
Andras Bacsai
99705ee9f0 fix description 2024-11-12 10:25:58 +01:00
Andras Bacsai
7952dae52d
Merge pull request #4119 from marconneves/next
Update schema of private keys by id response
2024-11-12 10:25:43 +01:00
Andras Bacsai
8e4060375d remove ray 2024-11-12 10:23:00 +01:00
Andras Bacsai
da9c8eed16
Merge pull request #4194 from quarkcore/fix/gitlab-empty-webhook-secret
Fix: Gitlab webhooks can be triggered without secret
2024-11-12 10:22:36 +01:00
Andras Bacsai
1faa8be615 fix: cloud + stripe related 2024-11-11 22:18:15 +01:00
Andras Bacsai
cb433dddc4 version++ 2024-11-11 15:00:37 +01:00
Andras Bacsai
b379e50d90 feat: custom nginx configuration for static deployments + fix 404 redirects in nginx conf 2024-11-11 14:37:36 +01:00
quarkcore
8ddc5d6ef7
Merge branch 'next' into fix/gitlab-empty-webhook-secret 2024-11-08 15:19:45 +01:00
Kolja Völker
88e6c04b73 Fixes: https://github.com/coollabsio/coolify/issues/4186 2024-11-08 15:15:58 +01:00
Andras Bacsai
a9832e2783
Merge pull request #3949 from peaklabs-dev/fix-project-deletion
Fix: Projects can be deleted with resources
2024-11-07 13:43:56 +01:00
Andras Bacsai
a297c9fcab fix: better invitation errors 2024-11-07 12:32:23 +01:00
Andras Bacsai
275edb6c1f put a few things on high queue 2024-11-06 12:33:56 +01:00
Andras Bacsai
0aa2ba6923 fix: db/service start should be on high queue 2024-11-06 12:30:10 +01:00
Andras Bacsai
7fb1a1fc75 fix: use Auth(), add new db proxy stop event refactor clickhouse view 2024-11-04 14:18:16 +01:00
Marcon Neves
4a6df8b6f9
fix: update schema in code decorator 2024-11-03 14:03:59 -03:00
Kael
b9597e53e1 Merge branch 'next' into feat/deployment-token 2024-11-01 16:55:00 +11:00
Andras Bacsai
4fa533aae8 Refactor webhook event handling logic 2024-11-01 00:07:01 +01:00
Andras Bacsai
5ce2422b90 fix: stripe webhooks
fix: add custome created webhook
2024-10-31 23:26:40 +01:00
Lucas Michot
1ec224fde1 Inline many variables. 2024-10-31 18:20:11 +01:00
Lucas Michot
8e1444eaa7 Get rid of many useless blank lines 2024-10-31 17:44:01 +01:00
Lucas Michot
0c133b113c Delete some useless imports 2024-10-31 16:33:49 +01:00
Kael
6520235667 middleware should allow, not deny 2024-10-30 19:06:50 +11:00
Andras Bacsai
bb7184b3ff
Merge pull request #4041 from lucasmichot/feat/try-catch
Remove some useless `catch` blocks
2024-10-28 21:15:08 +01:00
Lucas Michot
c5403b0b3f Always prefer ::class notation 2024-10-28 14:56:13 +01:00
Lucas Michot
5b6e466e0c Remove some useless catch blocks 2024-10-28 14:37:00 +01:00
Lucas Michot
d557a22b91 Remove all ray() calls 2024-10-28 13:51:23 +01:00
Andras Bacsai
0424b71506
Merge pull request #3953 from FrankVisuals/main
update openapi spec for healthcheck
2024-10-21 14:49:48 +02:00
Andras Bacsai
673ec963e2 fix: is_static through API 2024-10-21 09:51:19 +02:00
Frank Hufnagel
5d8a3d0eec update openapi spec for healthcheck 2024-10-19 12:57:29 +02:00
peaklabs-dev
5a38b21d95
fix project deletion and refactor some code 2024-10-18 13:48:41 +02:00
Andras Bacsai
2315bdb93f ui updates on server 2024-10-17 14:56:36 +02:00
Andras Bacsai
4c95647b96 feat: cleanup sentinel on server deletion
fix: Sentinel should not be enabled on build servers
2024-10-17 11:21:43 +02:00
Andras Bacsai
1f193d465d sentinel updates 2024-10-14 12:07:37 +02:00
Andras Bacsai
10ca408b37 fix: is_static settings through API
fix: validation rules
2024-10-10 09:33:29 +02:00
Andras Bacsai
6dd0bd0742 fix: api useBuildServer 2024-10-03 15:09:56 +02:00
Andras Bacsai
83549965ca Refactor instanceSettings() function for improved code readability 2024-10-01 10:37:40 +02:00
Andras Bacsai
31cf3294bf Update UUID description in API controller and OpenAPI specification 2024-10-01 09:04:01 +02:00
Andras Bacsai
9212f3b24c feat: Update resource deletion job to allow configurable options through API 2024-10-01 09:02:16 +02:00
liberocks
f5785b1f17 fix: save settings after assigning value 2024-09-28 11:28:48 +07:00
liberocks
2219219906 fix: edit is_build_server_enabled upon creating application on other application type 2024-09-28 11:25:00 +07:00
liberocks
9ec3233c0c feat: allow specify use_build_server when creating/updating an application 2024-09-28 11:11:43 +07:00
Andras Bacsai
0222aa137d feat(api): add endpoint to execute a command 2024-09-23 11:09:14 +02:00
Luca-Sordetti
4e167dc539
feat(api): add an endpoint to execute a command 2024-09-22 12:38:25 +02:00
Andras Bacsai
63729c7bbf
Merge pull request #3373 from mattstein/api-project-description
feat: Expose project description in API response
2024-09-10 08:49:08 +02:00
Matt Stein
f73983e3dd
Include project’s description in API response. 2024-09-09 09:44:43 -07:00
Matt Stein
44d417c07e
Fix user-facing string case. 2024-09-09 09:38:40 -07:00
Andras Bacsai
ec7b18556e Update services controller to include new service envs commands 2024-09-06 10:48:47 +02:00
Gabriel Galer
2e5ed5969d Update services controller to include new service envs commands 2024-09-05 23:58:52 +03:00
Andras Bacsai
08b9c79298 fix: Handle project not found error in environment_details API endpoint 2024-09-05 11:18:00 +02:00
Andras Bacsai
dbad08f4dd
Merge pull request #3288 from julienbeugras/fix-project-create-api-docs
Fix project create api docs
2024-09-05 11:16:05 +02:00
Andras Bacsai
25480fe624 fix: openapi endpoint urls 2024-09-04 10:09:10 +02:00
root
ae4c889fa2 Fix API documentation for project creation endpoint 2024-09-02 11:05:58 +02:00
Andras Bacsai
29192a79d0 fix: application patch request instant_deploy 2024-08-15 12:49:50 +02:00
Andras Bacsai
ea3e4f3188 fix: database custom environment variables 2024-08-13 14:25:24 +02:00
Andras Bacsai
094499e1a3 refactor: Update OpenApi command to generate documentation 2024-08-13 13:27:50 +02:00
Andras Bacsai
59702c6dbc refactor: Update ProxyTypes enum values to use TRAEFIK instead of TRAEFIK_V2 2024-08-07 17:52:51 +02:00
Andras Bacsai
052565f4e8
Merge pull request #3011 from stooit/feat/enhance-services-api
Return applications & databases in service API.
2024-08-07 12:02:18 +02:00
Stuart Rowlands
dfb6d4da3d Return applications & databases in service API. 2024-08-07 17:20:55 +10:00
andrasbacsai
96c4f5b8da Fix styling 2024-07-25 11:31:59 +00:00
Andras Bacsai
6a4aa492c0 fix: random generated uuid will be full length (not 7 characters) 2024-07-25 13:31:01 +02:00
Andras Bacsai
4b29636b42 fix: api -> application patch endpoint 2024-07-25 11:53:57 +02:00
andrasbacsai
613830e6a6 Fix styling 2024-07-24 19:11:12 +00:00
Andras Bacsai
2ea146333e fix: uuid in api docs type 2024-07-24 21:10:32 +02:00
andrasbacsai
f76d45b826 Fix styling 2024-07-24 12:27:21 +00:00
Andras Bacsai
f1e5b61970 feat: update API endpoint summaries 2024-07-23 14:36:44 +02:00
Andras Bacsai
189a8347ed feat: add server api endpoints 2024-07-23 14:20:53 +02:00
Andras Bacsai
e96e8f6fec feat: add patch request to projects 2024-07-23 11:48:38 +02:00
Andras Bacsai
38299ab507 feat: create/delete project endpoints 2024-07-23 11:36:05 +02:00
Andras Bacsai
a3a1ff69e1 fix: preview deployments should be stopped properly via gh webhook 2024-07-22 13:06:03 +02:00
Andras Bacsai
14dc933219 fix: missing input for api endpoint 2024-07-19 14:40:01 +02:00
Andras Bacsai
c0e88df3e8 feat: add readonly labels 2024-07-17 14:52:40 +02:00
Andras Bacsai
0f55e83591 revert: instancesettings 2024-07-12 15:45:36 +02:00
andrasbacsai
fa895db76e Fix styling 2024-07-12 10:53:07 +00:00
Andras Bacsai
88f33be5b6 refactor: only get instanceSettings once from db 2024-07-12 12:51:55 +02:00
Andras Bacsai
574bafd950 fix: cleanup parameter 2024-07-11 12:50:12 +02:00
Andras Bacsai
2b805f869a fix/feat: better volume cleanups 2024-07-11 12:38:54 +02:00
Andras Bacsai
3ae990aa40 fix: api 2024-07-11 10:17:20 +02:00
Andras Bacsai
4ce36631e0 Refactor deployment API response structure 2024-07-10 11:15:43 +02:00
Andras Bacsai
26f4bcc77e fix: return data of app update 2024-07-10 10:29:52 +02:00
Andras Bacsai
d05e23264b fix: database input validators 2024-07-09 15:23:53 +02:00
Andras Bacsai
e7feac848a descriptions 2024-07-09 14:12:36 +02:00
Andras Bacsai
33b965d9db chore: more details 2024-07-09 13:59:54 +02:00
Andras Bacsai
6c33bd9c72 openapi services 2024-07-09 13:30:13 +02:00
Andras Bacsai
c72fd2fc9d openapi databases 2024-07-09 13:19:21 +02:00
Andras Bacsai
2d3a6a4528 openapi work work 2024-07-09 10:45:10 +02:00
Andras Bacsai
9c821e2480 init openapi generator 2024-07-06 14:34:15 +02:00
Andras Bacsai
38d9999814 refactor: Simplify code for retrieving subscription in Stripe webhook 2024-07-06 13:47:43 +02:00
Andras Bacsai
920305432b feat: Improve internal notification message for early fraud warning webhook 2024-07-05 20:31:19 +02:00
Andras Bacsai
42fb8ab379 feat: early fraud warning webhook 2024-07-05 20:25:53 +02:00
Andras Bacsai
88ab385100 test openapi 2024-07-05 16:08:01 +02:00
Andras Bacsai
efa2ae5177 api api api api 2024-07-04 13:45:06 +02:00
Andras Bacsai
5e55c799ec api api api 2024-07-03 17:10:00 +02:00
Andras Bacsai
b24a489c77 fix: api updates 2024-07-03 13:13:38 +02:00
Andras Bacsai
4459c9f73d feat: api api api api api api 2024-07-02 16:12:04 +02:00
Andras Bacsai
3c13f1ff61 feat: restart database
feat: public dbs stay public after restart
feat: patch database conf
2024-07-02 13:39:44 +02:00
Andras Bacsai
c39d6dd407 feat: token permissions
feat: handle sensitive data
feat: handle read-only data
2024-07-02 12:15:58 +02:00
Andras Bacsai
da6f2da3d0 feat: lots of api endpoints 2024-07-01 16:26:50 +02:00
Andras Bacsai
dbc235d84a fix: check domain on new app via api 2024-07-01 11:39:10 +02:00
Andras Bacsai
b86924bc0e feat: private gh deployments through api 2024-06-30 11:30:31 +02:00
Andras Bacsai
30b7e831c0 feat: new app API endpoint 2024-06-28 15:05:37 +02:00
Andras Bacsai
613e980267 fix: cleanup subs in cloud 2024-06-27 12:48:37 +02:00
Andras Bacsai
07508df8fd fix: remove both option for api endpoints. it just makes things complicated 2024-06-26 13:57:04 +02:00
Andras Bacsai
2a52fb5872 feat: bulk env update api endpoint 2024-06-26 13:32:36 +02:00
Andras Bacsai
f45b3cab55 feat: more API endpoints 2024-06-26 13:00:36 +02:00
Andras Bacsai
eb76d63117 extend application put api 2024-06-25 21:22:23 +02:00