-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
29 lines (25 loc) · 1.1 KB
/
Copy path.env.example
File metadata and controls
29 lines (25 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Copy to `.env` for local dev: cp .env.example .env
# Defaults below work out of the box inside the devcontainer.
# --- Database (Postgres container) ---
POSTGRES_USER="root"
POSTGRES_PASSWORD="mysecretpassword"
POSTGRES_DB="local"
# Host MUST be `db` — the Postgres service name on the compose network.
DATABASE_URL="postgres://root:mysecretpassword@db:5432/local"
# --- Auth ---
AUTH_SECRET="dev-secret-change-me" # generate with: openssl rand -hex 32
# --- Email ---
# Dev fallback: with MAILER_CONSOLE=true (or a blank RESEND_API_KEY),
# verification links are printed to the dev server console instead of sent.
MAILER_CONSOLE=true
RESEND_API_KEY=""
EMAIL_FROM="hello@example.com"
# --- OAuth (optional in dev; fill in only to test Google/GitHub sign-in) ---
# Create the apps: Google → Cloud Console → Credentials; GitHub → Settings →
# Developer settings → OAuth Apps. Register the localhost redirect URI exactly:
# http://localhost:5173/auth/api/google/callback
# http://localhost:5173/auth/api/github/callback
GOOGLE_CLIENT_ID=""
GOOGLE_CLIENT_SECRET=""
GITHUB_CLIENT_ID=""
GITHUB_CLIENT_SECRET=""