-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.env.example
More file actions
42 lines (35 loc) · 1.92 KB
/
.env.example
File metadata and controls
42 lines (35 loc) · 1.92 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
30
31
32
33
34
35
36
37
38
39
40
41
42
# Copy to `.env` and adjust values. Do not commit `.env`.
# PostgreSQL connection string.
# Local dev: run `docker compose up postgres -d` or use your own Postgres instance.
# Docker Compose sets this automatically to connect to the `postgres` service.
DATABASE_URL="postgresql://studio:studio_secret@localhost:5432/openrouter_studio"
# Password for the PostgreSQL `studio` user (used by docker-compose).
# Override this in `.env` with a strong secret.
# POSTGRES_PASSWORD=your_strong_password_here
# NextAuth — generate with: openssl rand -base64 32
AUTH_SECRET="replace-with-a-long-random-secret"
# Local dev (`npm run dev`): Next.js port (must match NEXTAUTH_URL).
# Docker Compose sets PORT=3000 inside the container; use APP_PORT for the host port.
PORT=3080
# Optional canonical URL (no trailing slash). For local `npm run dev` only, you can set this
# to match the dev server (e.g. http://localhost:3080).
#
# Docker / production: leave UNSET and use AUTH_TRUST_HOST (see docker-compose) so Auth.js uses
# the real browser Host. If you set NEXTAUTH_URL to localhost while the app is served on another
# host, sign-out and OAuth redirects will go to the wrong place.
# NEXTAUTH_URL="http://localhost:3080"
# Docker only: port published on your machine (container still uses 3000 inside).
# Compose defaults to 3080; override if needed, e.g. APP_PORT=3000
# APP_PORT=3080
# S3-compatible object storage for large studio media (Docker Compose uses MinIO; AWS, Garage, etc. also work).
# Docker Compose: `minio` + `minio-init` set defaults; override keys/password here in production.
# Local `npm run dev` against Compose MinIO: use host URL, e.g.
# STUDIO_S3_ENDPOINT=http://localhost:9000
# STUDIO_S3_REGION=us-east-1
# STUDIO_S3_BUCKET=studio-media
# STUDIO_S3_ACCESS_KEY=minio
# STUDIO_S3_SECRET_KEY=minio_secret_change_me
#
# Optional: published MinIO ports (Compose only; defaults 9000 API / 9001 console).
# MINIO_PORT=9000
# MINIO_CONSOLE_PORT=9001