feat: add configurable proxy timeout for public database connections#8429
Closed
sushi-levanter wants to merge 1 commit intocoollabsio:v4.xfrom
Closed
feat: add configurable proxy timeout for public database connections#8429sushi-levanter wants to merge 1 commit intocoollabsio:v4.xfrom
sushi-levanter wants to merge 1 commit intocoollabsio:v4.xfrom
Conversation
Add a 'Proxy Timeout' field to all 8 database types (PostgreSQL, MySQL, MariaDB, Redis, KeyDB, Dragonfly, MongoDB, ClickHouse) and service databases. Previously, the nginx TCP proxy used the default 10-minute timeout, causing long-running database queries and idle connections to be dropped unexpectedly. Changes: - Add public_proxy_timeout column (integer, default 0) to all database tables via migration - Update StartDatabaseProxy to set proxy_timeout in nginx stream config (0 = no timeout, maps to 365d; positive value = timeout in seconds) - Add proxy_connect_timeout of 60s for connection establishment - Add Livewire property, validation, and sync for all 8 database components - Add UI input field in proxy section of all database settings views Default behavior (0) effectively removes the timeout, matching user expectations for persistent database connections. Closes #7743
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
/claim #7743
Problem
The nginx TCP proxy for publicly exposed databases uses the default
proxy_timeoutof 10 minutes. This causes long-running queries and idle database connections to be dropped unexpectedly — a significant issue for production workloads.Solution
Added a dedicated "Proxy Timeout (seconds)" field to all 8 database types, as requested by @zachlatta in the issue discussion.
How it works
0(no timeout) — maps toproxy_timeout 365din nginx, effectively disabling the idle timeout3600= 1 hour)proxy_connect_timeout 60sfor connection establishmentChanges
New file:
database/migrations/2026_02_18_000001_add_public_proxy_timeout_to_database_tables.php— addspublic_proxy_timeout(integer, default 0) to all 9 database tablesModified (17 files):
app/Actions/Database/StartDatabaseProxy.php— reads timeout value and setsproxy_timeout+proxy_connect_timeoutin nginx stream configDesign decisions
Testing
Closes #7743