From 1a92ad26e1ae4963a9e6df9e94edc3a0177f87ec Mon Sep 17 00:00:00 2001 From: Akshit Date: Sun, 9 Nov 2025 11:11:43 +0530 Subject: [PATCH 1/3] Feat: Add DB connection Url support --- content/self-hosting/environment-variables.mdx | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/content/self-hosting/environment-variables.mdx b/content/self-hosting/environment-variables.mdx index 16b89b4..db23b58 100644 --- a/content/self-hosting/environment-variables.mdx +++ b/content/self-hosting/environment-variables.mdx @@ -42,12 +42,16 @@ 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 From b94bc4eb6a4927727926894d3b678329729e3056 Mon Sep 17 00:00:00 2001 From: Akshit Raj <104440265+Junko-Takeguchi@users.noreply.github.com> Date: Sun, 9 Nov 2025 15:16:35 +0530 Subject: [PATCH 2/3] Apply suggestion from @mittalyashu Co-authored-by: Yashu Mittal --- content/self-hosting/environment-variables.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/self-hosting/environment-variables.mdx b/content/self-hosting/environment-variables.mdx index db23b58..69cd9b1 100644 --- a/content/self-hosting/environment-variables.mdx +++ b/content/self-hosting/environment-variables.mdx @@ -43,7 +43,7 @@ Deployment with [one-click deploy](/self-hosting/installation#one-click-deployme | Variable | Description | Default value | |------------------------|-------------------------------------------------------------------------------------------|---------------------------------------------| -| `LOGCHIMP_DB_URL` | Complete connection URL of your PostgreSQL server. | `postgresql://lc:password@db:5432/db` | +| `LOGCHIMP_DB_URL` | Complete connection URL for PostgreSQL. If provided this takes precedence over individual connection parameters. Format: `postgresql://user: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` | From 4352dbcdb25831027f3dabf604609f5d3ec1e8a5 Mon Sep 17 00:00:00 2001 From: Akshit Date: Sun, 9 Nov 2025 15:21:27 +0530 Subject: [PATCH 3/3] removed alert --- content/self-hosting/environment-variables.mdx | 2 -- 1 file changed, 2 deletions(-) diff --git a/content/self-hosting/environment-variables.mdx b/content/self-hosting/environment-variables.mdx index 69cd9b1..41f8bd9 100644 --- a/content/self-hosting/environment-variables.mdx +++ b/content/self-hosting/environment-variables.mdx @@ -50,8 +50,6 @@ Deployment with [one-click deploy](/self-hosting/installation#one-click-deployme | `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