-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
43 lines (38 loc) · 1.49 KB
/
.env.example
File metadata and controls
43 lines (38 loc) · 1.49 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
# GoPOS API Environment Configuration
# PostgreSQL/Supabase Database (Required)
# ============================================
# Application Settings
# ============================================
APP_ENV=development
APP_PORT=8080
APP_NAME="GoPOS API"
APP_VERSION=2.0.0
# ============================================
# PostgreSQL/Supabase Database (Required)
# ============================================
# Get your connection string from Supabase:
# 1. Go to your Supabase project dashboard
# 2. Navigate to Settings > Database
# 3. Copy the "Connection string" (Transaction pooler recommended)
# 4. Replace [YOUR-PASSWORD] with your database password
#
# Format: postgres://[user]:[password]@[host]:[port]/[database]?sslmode=require
# Example for Supabase:
DB_CONN=postgres://postgres.projectid:your-password@aws-0-region.pooler.supabase.com:6543/postgres?sslmode=require
# ============================================
# JWT Authentication
# ============================================
# IMPORTANT: Change this secret in production!
JWT_SECRET=your-super-secret-jwt-key-change-this-in-production
JWT_EXPIRY_HOURS=24
JWT_REFRESH_EXPIRY_HOURS=168
# ============================================
# Rate Limiting
# ============================================
RATE_LIMIT_RPS=100
RATE_LIMIT_BURST=200
# ============================================
# CORS Settings
# ============================================
# Comma-separated list of allowed origins
CORS_ALLOWED_ORIGINS=http://localhost:3000,http://localhost:5173