From 52f2aac54e66ccf575c418557619bedfa5e97013 Mon Sep 17 00:00:00 2001 From: Anish Sarkar <104695310+AnishSarkar22@users.noreply.github.com> Date: Thu, 15 Jan 2026 21:07:14 +0530 Subject: [PATCH] chore: update docker-compose and documentation for PostgreSQL configuration - Added NEXT_FRONTEND_URL environment variable to docker-compose.yml for frontend integration. - Updated hero-section.tsx to change the "Get Started" button link from "/login" to "/register". - Enhanced electric-sql documentation with detailed instructions for locating and editing the postgresql.conf file. --- docker-compose.yml | 1 + .../components/homepage/hero-section.tsx | 2 +- .../content/docs/how-to/electric-sql.mdx | 15 +++++++++++++-- 3 files changed, 15 insertions(+), 3 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 9c50173be..0794998f0 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -58,6 +58,7 @@ services: - LANGSMITH_TRACING=false - ELECTRIC_DB_USER=${ELECTRIC_DB_USER:-electric} - ELECTRIC_DB_PASSWORD=${ELECTRIC_DB_PASSWORD:-electric_password} + - NEXT_FRONTEND_URL=http://frontend:3000 depends_on: - db - redis diff --git a/surfsense_web/components/homepage/hero-section.tsx b/surfsense_web/components/homepage/hero-section.tsx index 7ccdd850c..0ff61ac28 100644 --- a/surfsense_web/components/homepage/hero-section.tsx +++ b/surfsense_web/components/homepage/hero-section.tsx @@ -184,7 +184,7 @@ function GetStartedButton() { return ( Get Started diff --git a/surfsense_web/content/docs/how-to/electric-sql.mdx b/surfsense_web/content/docs/how-to/electric-sql.mdx index 599267595..2dab8920d 100644 --- a/surfsense_web/content/docs/how-to/electric-sql.mdx +++ b/surfsense_web/content/docs/how-to/electric-sql.mdx @@ -147,7 +147,18 @@ If you're using a local PostgreSQL installation, follow these steps: **1. Enable logical replication in PostgreSQL:** -Locate your `postgresql.conf` file and add the following settings: +Open your `postgresql.conf` file using vim (or your preferred editor): + +```bash +# Common locations: +# macOS (Homebrew): /opt/homebrew/var/postgresql@15/postgresql.conf +# Linux: /etc/postgresql/15/main/postgresql.conf +# Windows: C:\Program Files\PostgreSQL\15\data\postgresql.conf + +sudo vim /path/to/postgresql.conf +``` + +Add the following settings: ```ini # Enable logical replication (required for Electric SQL) @@ -156,7 +167,7 @@ max_replication_slots = 10 max_wal_senders = 10 ``` -After saving the changes, restart your PostgreSQL server for the configuration to take effect. +After saving the changes (`:wq` in vim), restart your PostgreSQL server for the configuration to take effect. **2. Update environment variable:**