From b9ab3de3ae098b7b47f85cc60d3a66cf6340b7ad Mon Sep 17 00:00:00 2001 From: Akshit Date: Sat, 8 Nov 2025 19:32:35 +0530 Subject: [PATCH] Feature: Complete DB connetion url support --- content/self-hosting/environment-variables.mdx | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/content/self-hosting/environment-variables.mdx b/content/self-hosting/environment-variables.mdx index 16b89b4..70bb403 100644 --- a/content/self-hosting/environment-variables.mdx +++ b/content/self-hosting/environment-variables.mdx @@ -42,12 +42,15 @@ Deployment with [one-click deploy](/self-hosting/installation#one-click-deployme ### Database | Variable | Description | Default value | -|------------------------|-------------------------------------------------------------------------------------------|---------------| -| `LOGCHIMP_DB_HOST` | Hostname or IP address of your PostgreSQL server. | `db` | -| `LOGCHIMP_DB_DATABASE` | Name of the PostgreSQL database LogChimp will use. | `logchimp` | -| `LOGCHIMP_DB_PORT` | TCP port your PostgreSQL server is listening on. | `5432` | -| `LOGCHIMP_DB_USER` | Username for PostgreSQL authentication. | `logchimp` | -| `LOGCHIMP_DB_PASSWORD` | Password for PostgreSQL authentication. **Critical:** Use a strong, unique password here. | `logchimp` | +|------------------------|-------------------------------------------------------------------------------------------|---------------------------------------------| +| `LOGCHIMP_DB_URL` | Complete connection URL of your PostgreSQL server. | `postgresql://lc:password@db:5432/db` | +| `LOGCHIMP_DB_HOST` | Hostname or IP address of your PostgreSQL server. | `db` | +| `LOGCHIMP_DB_DATABASE` | Name of the PostgreSQL database LogChimp will use. | `logchimp` | +| `LOGCHIMP_DB_PORT` | TCP port your PostgreSQL server is listening on. | `5432` | +| `LOGCHIMP_DB_USER` | Username for PostgreSQL authentication. | `logchimp` | +| `LOGCHIMP_DB_PASSWORD` | Password for PostgreSQL authentication. **Critical:** Use a strong, unique password here. | `logchimp` | + +> If `LOGCHIMP_DB_URL` is provided then it will override the individual connection configurations for example `LOGCHIMP_DB_HOST`, `LOGCHIMP_DB_DATABASE`, etc and connect as per the given URL. ### Mail