-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
41 lines (29 loc) · 1.07 KB
/
.env.example
File metadata and controls
41 lines (29 loc) · 1.07 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
# Frontend Configuration
# Vite will load environment variables prefixed with VITE_
# This URL is used by the React app to make API requests
# Example for local development:
# VITE_API_URL=http://localhost:5050
# Example for subdomain deployment:
# VITE_API_URL=https://api.example.com
VITE_API_URL=http://localhost:5050
# Backend CORS Configuration
# FRONTEND_URL: Allowed origins for CORS (comma-separated)
# This must match the origin(s) of your frontend application
# Example for local development:
# FRONTEND_URL=http://localhost:5173
# Example for subdomain deployment (multiple origins):
# FRONTEND_URL=https://app.example.com,https://www.app.example.com
FRONTEND_URL=http://localhost:5173
# Database Configuration
DATABASE_URL=postgresql://user:password@localhost:5432/mdds
PGHOST=localhost
PGPORT=5432
PGUSER=your_database_user
PGPASSWORD=your_database_password
PGDATABASE=mdds
# Session Secret (Generate a random string)
SESSION_SECRET=your-random-secret-key-change-this-in-production
# Environment
NODE_ENV=production
# Optional: Custom Port (default is 5050)
# PORT=5050