Commit Graph

37 Commits

Author SHA1 Message Date
Andras Bacsai e2199f1223 fix(queue): route cloud jobs to dedicated queues
Use config-based queue selection for deployment and scheduled jobs so cloud dispatches deployments to `deployments` and scheduled jobs to `crons`, while self-hosted keeps using `high`.

Add coverage for deployment queue helper, start action routing, and scheduled job manager routing.
2026-05-22 16:11:24 +02:00
Andras Bacsai 27e2680d70 Merge remote-tracking branch 'origin/next' into fix/configurable-proxy-timeout 2026-03-10 10:01:46 +01:00
Andras Bacsai 184fbb98f3 fix(proxy): add validation and normalization for database proxy timeout
- Extract proxy timeout configuration logic into dedicated method
- Add min:1 validation rule for publicPortTimeout
- Normalize invalid timeout values (null, 0, negative) to default 3600s
- Add tests for timeout configuration normalization and validation
2026-03-10 09:59:19 +01:00
Brendan G. Lim 040658c142 fix: address review feedback on proxy timeout
- Fix disable logic: timeout editable when proxy is stopped
- Remove hardcoded proxy_connect_timeout (60s is nginx default)
- Remove misleading '0 for no timeout' helper text
- Add min:1 validation for timeout value
2026-02-27 14:24:04 -08:00
Cinzya 34c5eb9e10 fix(proxy): mounting error for nginx.conf in dev 2026-02-27 22:07:37 +01:00
Brendan G. Lim 30c1d9bbd0 feat: add configurable timeout for public database TCP proxy
Adds a per-database 'Proxy Timeout' setting for publicly exposed databases.
The nginx stream proxy_timeout can now be configured in the UI, defaulting
to 3600s (1 hour) instead of nginx's 10min default. Set to 0 for no timeout.

Fixes #7743
2026-02-26 21:12:58 -08:00
Andras Bacsai b7480fbe38 chore: prepare for PR 2026-02-15 13:46:08 +01:00
Andras Bacsai 29c62cb38f fix(service): use database UUID for ServiceDatabase proxy container name
The proxy container was incorrectly named using the service UUID instead
of the database UUID, causing proxy logs to query the wrong container.
Each ServiceDatabase should have its own uniquely named proxy container.
2026-01-02 16:49:24 +01:00
Andras Bacsai 393745b68c Revert "refactor(file-transfer): replace base64 encoding with direct file transfer method across multiple database actions for improved clarity and efficiency"
This reverts commit 18068857b1.
2025-09-15 17:55:08 +02:00
Andras Bacsai 18068857b1 refactor(file-transfer): replace base64 encoding with direct file transfer method across multiple database actions for improved clarity and efficiency 2025-09-08 14:04:24 +02:00
Andras Bacsai eb322ce397 fix(database): ensure internal port defaults correctly for unsupported database types in StartDatabaseProxy 2025-07-08 21:03:20 +02:00
Andras Bacsai 9b8da285c0 refactor(database): improve error handling for unsupported database types in StartDatabaseProxy 2025-07-07 10:23:31 +02:00
Andras Bacsai 620f70c7ff fix(database): proxy ssl port if ssl is enabled 2025-06-30 09:26:28 +02:00
Darren Sisson b70a9a6d47 change db proxy to use volume mount for config (#5981)
* change db proxy to use volume mount for config

* fix(database-proxy): adjust configuration directory for development environment

---------

Co-authored-by: Andras Bacsai <5845193+andrasbacsai@users.noreply.github.com>
2025-06-13 18:02:52 +02:00
Andras Bacsai a07b581478 fix(database): simplify container name generation in StartDatabaseProxy 2025-03-12 16:46:31 +01:00
Andras Bacsai 078ef62eb8 fix(database): handle unsupported database types in StartDatabaseProxy
Added a default case to the switch statement in StartDatabaseProxy to throw an exception for unsupported database types. This change improves error handling and ensures that only valid database types are processed, enhancing the robustness of the database proxy functionality.
2025-03-12 16:35:47 +01:00
Andras Bacsai 18fe524cdb fix(database): limit container name length for database proxy
Updated the container name generation logic in StartDatabaseProxy to ensure the resulting name does not exceed 32 characters. This change prevents potential issues with container name length restrictions, enhancing the robustness of the database proxy setup.
2025-03-12 16:34:42 +01:00
Andras Bacsai fa619550c2 fix(database): correct container name generation for service databases 2025-03-12 16:33:00 +01:00
Gauthier A. 0d12b8296e fix wrong database container name + code simplification 2025-02-19 00:05:46 +01:00
Darren Sisson a5199c6e1a fix make public in supabase 2025-01-09 17:06:57 +00: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 7dc65dfd79 fix: make sure important jobs/actions are running on high prio queue 2024-11-22 11:16:01 +01:00
Lucas Michot c5403b0b3f Always prefer ::class notation 2024-10-28 14:56:13 +01:00
Thijmen d86274cc37 Fix styling 2024-06-10 20:43:34 +00:00
Andras Bacsai fb80318553 Refactor docker-compose files to remove version numbers 2024-05-08 09:23:36 +02:00
Andras Bacsai 35b07a9c18 Refactor code to add sudo prefix for certain commands in multiple files 2024-04-17 10:49:34 +02:00
Andras Bacsai c6844ff47a Add keydb, dragonfly and clickhouse 2024-04-10 15:00:46 +02:00
Andras Bacsai 8cb6f67a60 fix: make sure service db proxy restarted 2024-03-25 12:17:52 +01:00
Andras Bacsai 7c580f898c fix: public service database 2024-03-25 12:13:43 +01:00
Andras Bacsai 486de58d5b Update database start commands 2023-11-13 15:27:33 +01:00
Andras Bacsai db0e3cfcc4 fix: database proxy for services
version++
tiny css modifications
2023-11-10 09:41:42 +01:00
Andras Bacsai 61e1fdede9 feat: make service databases public 2023-11-09 14:59:38 +01:00
Andras Bacsai f801bb98cd feat: mysql, mariadb 2023-10-24 14:31:28 +02:00
Andras Bacsai c53d88902c feat: standalone mongodb 2023-10-19 13:32:03 +02:00
Andras Bacsai 30af317bd9 fix: show docker build logs 2023-10-17 14:04:21 +02:00
Andras Bacsai 0ef386b4a8 fix: stopping a resource is now job based
ui: show status on project
2023-10-14 14:22:07 +02:00