mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-06-06 20:15:17 +02:00
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.
This commit is contained in:
parent
eb1f39b365
commit
52f2aac54e
3 changed files with 15 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -184,7 +184,7 @@ function GetStartedButton() {
|
|||
return (
|
||||
<motion.div whileHover={{ scale: 1.02, y: -2 }} whileTap={{ scale: 0.98 }}>
|
||||
<Link
|
||||
href="/login"
|
||||
href="/register"
|
||||
className="group relative z-20 flex h-11 w-full cursor-pointer items-center justify-center gap-2 rounded-xl bg-black px-6 py-2.5 text-sm font-semibold text-white shadow-lg transition-shadow duration-300 hover:shadow-xl sm:w-56 dark:bg-white dark:text-black"
|
||||
>
|
||||
Get Started
|
||||
|
|
|
|||
|
|
@ -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:**
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue