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:**