Skip to content

Commit

Permalink
fix(env-var): move from direct database URL to pooler connection stri…
Browse files Browse the repository at this point in the history
…ng (#20)
  • Loading branch information
Cali93 authored Jan 18, 2024
1 parent 782dc55 commit eee3d6f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ COOKIE_NAME=sb-token
SUPABASE_JWT_SECRET=
COOKIE_SECRET=
HCAPTCHA_SECRET=
DIRECT_URL="postgresql://postgres:[YOUR_DB_PASSWORD]@db.[YOUR_SUPABASE_PROJECT_ID].supabase.co:5432/postgres"
DATABASE_URL="postgresql://postgres:[YOUR_DB_PASSWORD]@db.[YOUR_SUPABASE_PROJECT_ID].supabase.co:6543/postgres?pgbouncer=true"
DIRECT_URL="postgres://postgres.[YOUR_SUPABASE_PROJECT_ID]:[YOUR_DB_PASSWORD]@aws-0-eu-central-1.pooler.supabase.com:6543/postgres"
DATABASE_URL="postgres://postgres.[YOUR_SUPABASE_PROJECT_ID]:[YOUR_DB_PASSWORD]@aws-0-eu-central-1.pooler.supabase.com:6543/postgres?pgbouncer=true"
REDIS_PASSWORD="authpassword"
REDIS_HOST=redis
REDIS_PORT=6379
INFURA_API_KEY=
INFURA_API_KEY=
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,12 @@ npm run dev

The server will start on port 3333. You can access it at `http://localhost:3333`.

6. Alternatively you can run the docker containers

```sh
docker-compose build && docker-compose up
```

## API Endpoints

This API has the following endpoints:
Expand Down

0 comments on commit eee3d6f

Please sign in to comment.