forked from hcientist/thoughtswap-ts
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathenv.example
More file actions
52 lines (47 loc) · 1.92 KB
/
env.example
File metadata and controls
52 lines (47 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
43
44
45
46
47
48
49
50
51
52
# Canvas Configuration
CANVAS_CLIENT_ID=
CANVAS_CLIENT_SECRET=
CANVAS_BASE_URL=
CANVAS_REDIRECT_URI=
# Database Configuration
POSTGRES_USER=user
POSTGRES_PASSWORD=password
POSTGRES_DB=thoughtswap
# Port exposed on the host machine for direct database access
POSTGRES_HOST_PORT=5432
# Server (Backend) Configuration
# Port the Node.js server listens on inside the container
SERVER_PORT=3001
# Port exposed on the host machine to access the API
SERVER_HOST_PORT=8000
# Connection string for Prisma.
DATABASE_URL=postgresql://user:password@postgres:5432/thoughtswap
# Client (Frontend) Configuration
# Port the Vite server listens on inside the container
CLIENT_PORT=5173
# Port exposed on the host machine to access the UI
CLIENT_HOST_PORT=5173
# URL of the backend server for API requests (used by Vite proxy)
SERVER_URL=http://server:3001
# Shared Configuration
# URL where the frontend is accessible (used for CORS on the server)
# Should match http://localhost:${CLIENT_HOST_PORT}
FRONTEND_URL=http://localhost:5173
# ---------------------------------------------------------------------------
# Cloud Run / Cloud SQL Deployment
# ---------------------------------------------------------------------------
# These settings are used when deploying to Google Cloud Run with Cloud SQL.
# They are NOT required for local Docker Compose development.
#
# Cloud SQL instance connection name (found in the GCP Console):
# CLOUD_SQL_INSTANCE=project-id:region:instance-name
#
# DATABASE_URL format for Cloud SQL via Unix socket (used by Prisma on Cloud Run):
# DATABASE_URL=postgresql://USER:PASSWORD@localhost/DB_NAME?host=/cloudsql/PROJECT_ID:REGION:INSTANCE_NAME
#
# Example:
# CLOUD_SQL_INSTANCE=thoughtswap:us-east4:thoughtswap-db
# DATABASE_URL=postgresql://app_user:s3cret@localhost/thoughtswap?host=/cloudsql/thoughtswap:us-east4:thoughtswap-db
#
# Set RUN_MIGRATIONS=true on Cloud Run to auto-apply Prisma migrations on startup:
# RUN_MIGRATIONS=true