-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.env.example
More file actions
22 lines (18 loc) · 857 Bytes
/
.env.example
File metadata and controls
22 lines (18 loc) · 857 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# MongoDB Configuration
MONGODB_URI=mongodb://mongodb:27017/keeplocal
# Server Configuration
PORT=5000
NODE_ENV=production
# CORS Configuration (comma-separated origins, NO SPACES!)
# Für lokale Entwicklung:
ALLOWED_ORIGINS=http://localhost:3000,http://localhost
# Für Nginx Proxy Manager / Production (füge deine Domain hinzu):
# ALLOWED_ORIGINS=https://keeplocal.deine-domain.de,http://localhost:3000
# Für mehrere Domains:
# ALLOWED_ORIGINS=https://keeplocal.example.com,https://notes.example.com,http://localhost:3000
# JWT Authentication (REQUIRED - change in production!)
# Generiere ein sicheres Secret mit: openssl rand -base64 32
JWT_SECRET=change-this-to-a-very-long-random-secret-key-minimum-32-characters
JWT_EXPIRES_IN=7d
# Session Secret (deprecated, kept for backwards compatibility)
SESSION_SECRET=change-this-to-a-random-secret-key