Skip to content

Commit b38dd58

Browse files
authored
docs: add proxy timeout section for database public ports (#542)
1 parent 1a14f15 commit b38dd58

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

docs/databases/index.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,15 @@ Public port is used to expose the container port to the internet, by starting an
5252
- Port mappings makes the connection/port permanent (you need to restart your database to change it).
5353
- The public port makes the connection/port dynamic (you can change it without restarting the database, Coolify will restart the Nginx TCP proxy for you).
5454

55+
## Proxy Timeout
56+
57+
When using a public port, Coolify starts an Nginx TCP proxy to expose your database. By default, the proxy timeout is set to **3600 seconds** (1 hour).
58+
59+
You can configure this in the database settings under **Proxy Timeout (seconds)**. This controls how long idle connections are kept open before Nginx closes them.
60+
61+
- The minimum value is **1 second**.
62+
- Set a higher value if you have long-running queries or connections that stay idle for extended periods.
63+
5564
## Access database during builds
5665

5766
If you are using `Nixpacks` build pack, you have two ways to access your database during builds:

0 commit comments

Comments
 (0)